fix(external): adjust some variables

This commit is contained in:
Khue Doan 2021-12-11 23:49:53 +07:00
parent ed1a4e8aef
commit a389721afe
2 changed files with 6 additions and 2 deletions

View File

@ -5,6 +5,6 @@ provider "b2" {
}
resource "b2_bucket" "backup" {
bucket_name = "homelab-backup"
bucket_name = "khuedoan-homelab-backup"
bucket_type = "allPrivate"
}

View File

@ -1,3 +1,7 @@
variable "cloudflare_account_id" {
type = string
}
provider "cloudflare" {
# Environment variables
# CLOUDFLARE_API_TOKEN
@ -14,7 +18,7 @@ resource "random_password" "tunnel_secret" {
resource "cloudflare_argo_tunnel" "homelab" {
# TODO (optimize) Use variable for account_id
account_id = "xxx"
account_id = var.cloudflare_account_id
name = "homelab"
secret = base64encode(random_password.tunnel_secret.result)
}