diff --git a/ahoskingit/terraform/cloudflare_access.tf b/ahoskingit/terraform/cloudflare_access.tf new file mode 100644 index 0000000..76d0e6b --- /dev/null +++ b/ahoskingit/terraform/cloudflare_access.tf @@ -0,0 +1,7 @@ +resource "cloudflare_access_application" "money" { + zone_id = cloudflare_zone.ahosking_com.id + name = "money" + domain = "money.ahosking.com" + type = "self_hosted" + session_duration = "168h" +} diff --git a/ahoskingit/terraform/main_override.tf b/ahoskingit/terraform/main_override.tf new file mode 100644 index 0000000..ad87535 --- /dev/null +++ b/ahoskingit/terraform/main_override.tf @@ -0,0 +1,5 @@ +provider "cloudflare" { + # email = null + # api_key = null + api_token = null +} \ No newline at end of file diff --git a/ahoskingit/terraform/prodviders.tf b/ahoskingit/terraform/prodviders.tf index c0e26ab..efbfbe0 100644 --- a/ahoskingit/terraform/prodviders.tf +++ b/ahoskingit/terraform/prodviders.tf @@ -21,10 +21,14 @@ terraform { } } } +variable "CLOUDFLARE_ACCOUNT_ID" {} +variable "CLOUDFLARE_EMAIL" {} +variable "CLOUDFLARE_API_KEY" {} +variable "CLOUDFLARE_API_TOKEN" {} provider "cloudflare" { - email = var.CLOUDFLARE_EMAIL - api_key = var.CLOUDFLARE_API_KEY + # email = var.CLOUDFLARE_EMAIL + # api_key = var.CLOUDFLARE_API_KEY api_token = var.CLOUDFLARE_API_TOKEN } diff --git a/ahoskingit/terraform/variables.tf b/ahoskingit/terraform/variables.tf index 14ba7ed..cc32ef3 100644 --- a/ahoskingit/terraform/variables.tf +++ b/ahoskingit/terraform/variables.tf @@ -7,11 +7,6 @@ variable "aws_region" { default = "us-east-1" } -variable "CLOUDFLARE_ACCOUNT_ID" {} -variable "CLOUDFLARE_EMAIL" {} -variable "CLOUDFLARE_API_KEY" {} -variable "CLOUDFLARE_API_TOKEN" {} - variable "home_ip" { } diff --git a/cloudflare_access.tf b/cloudflare_access.tf deleted file mode 100644 index 14b2d82..0000000 --- a/cloudflare_access.tf +++ /dev/null @@ -1,7 +0,0 @@ -resource "cloudflare_access_application" "influx" { - zone_id = cloudflare_zone.ahosking.id - name = "" - domain = "" - type = "self_hosted" - sesion_duration = "" -}