diff --git a/main.tf b/main.tf index 8f82522..2ca5d20 100644 --- a/main.tf +++ b/main.tf @@ -99,26 +99,26 @@ data "cloudflare_zones" "domain" { # DNS setup resource "cloudflare_record" "site_cname" { zone_id = data.cloudflare_zones.domain.zones[0].id - name = var.site_domain - value = aws_s3_bucket_website_configuration.site.website_endpoint - type = "CNAME" - ttl = 1 + name = var.site_domain + value = aws_s3_bucket_website_configuration.site.website_endpoint + type = "CNAME" + ttl = 1 proxied = true } resource "cloudflare_record" "www" { zone_id = data.cloudflare_zones.domain.zones[0].id - name = "www" - value = var.site_domain - type = "CNAME" - ttl = 1 + name = "www" + value = var.site_domain + type = "CNAME" + ttl = 1 proxied = true } resource "cloudflare_page_rule" "https" { zone_id = data.cloudflare_zones.domain.zones[0].id - target = "*.${var.site_domain}/*" + target = "*.${var.site_domain}/*" actions { - always_use_https = true + always_use_https = true } } diff --git a/variables.tf b/variables.tf index 622339d..1c102aa 100644 --- a/variables.tf +++ b/variables.tf @@ -1,5 +1,5 @@ variable "aws_region" { - type = string + type = string description = "The AWS region of this site" }