2021-12-08 10:32:20 +07:00
|
|
|
terraform {
|
2021-12-11 13:40:53 +07:00
|
|
|
required_version = "~> 1.1.0"
|
2021-12-08 10:32:20 +07:00
|
|
|
|
|
|
|
backend "remote" {
|
|
|
|
hostname = "app.terraform.io"
|
|
|
|
organization = "khuedoan"
|
|
|
|
|
|
|
|
workspaces {
|
|
|
|
name = "homelab-external"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
required_providers {
|
|
|
|
cloudflare = {
|
|
|
|
source = "cloudflare/cloudflare"
|
|
|
|
version = "~> 3.4.0"
|
|
|
|
}
|
|
|
|
|
|
|
|
b2 = {
|
|
|
|
source = "Backblaze/b2"
|
|
|
|
version = "~> 0.7.0"
|
|
|
|
}
|
|
|
|
|
|
|
|
kubernetes = {
|
2021-12-24 15:15:21 +07:00
|
|
|
source = "hashicorp/kubernetes"
|
2021-12-08 10:32:20 +07:00
|
|
|
version = "~> 2.7.0"
|
|
|
|
}
|
2021-12-12 12:00:24 +07:00
|
|
|
|
|
|
|
http = {
|
2021-12-24 15:15:21 +07:00
|
|
|
source = "hashicorp/http"
|
2021-12-12 12:00:24 +07:00
|
|
|
version = "~> 2.1.0"
|
|
|
|
}
|
2021-12-08 10:32:20 +07:00
|
|
|
}
|
|
|
|
}
|
2021-12-21 01:14:24 +07:00
|
|
|
|
|
|
|
provider "cloudflare" {
|
2021-12-25 02:34:49 +07:00
|
|
|
email = var.cloudflare_email
|
|
|
|
api_key = var.cloudflare_api_key
|
2021-12-21 01:14:24 +07:00
|
|
|
}
|
|
|
|
|
|
|
|
provider "b2" {
|
2021-12-25 02:34:49 +07:00
|
|
|
application_key_id = var.b2_application_key_id
|
|
|
|
application_key = var.b2_application_key
|
2021-12-21 01:14:24 +07:00
|
|
|
}
|
|
|
|
|
|
|
|
provider "kubernetes" {
|
2021-12-25 02:34:49 +07:00
|
|
|
# Use KUBE_CONFIG_PATH environment variables
|
|
|
|
# Or in cluster service account
|
2021-12-21 01:14:24 +07:00
|
|
|
}
|