Skip to content

Commit 7aa71f3

Browse files
committed
Switch back to resource
1 parent 146540b commit 7aa71f3

1 file changed

Lines changed: 11 additions & 11 deletions

File tree

terraform/blazor_client.tf

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -25,19 +25,19 @@ data "cloudflare_zone" "dns_zone" {
2525
name = "dddsouthwest.com"
2626
}
2727

28-
# resource "cloudflare_record" "cname_record" {
29-
# zone_id = data.cloudflare_zone.dns_zone.id
30-
# name = local.subdomain
31-
# content = azurerm_static_web_app.blazor-client.default_host_name
32-
# type = "CNAME"
33-
# ttl = 3600
34-
# }
35-
36-
data "cloudflare_record" "cname_record" {
37-
zone_id = data.cloudflare_zone.dns_zone.id
38-
hostname = "${local.subdomain}.dddsouthwest.com"
28+
resource "cloudflare_record" "cname_record" {
29+
zone_id = data.cloudflare_zone.dns_zone.id
30+
name = local.subdomain
31+
content = azurerm_static_web_app.blazor-client.default_host_name
32+
type = "CNAME"
33+
ttl = 3600
3934
}
4035

36+
# data "cloudflare_record" "cname_record" {
37+
# zone_id = data.cloudflare_zone.dns_zone.id
38+
# hostname = "${local.subdomain}.dddsouthwest.com"
39+
# }
40+
4141
resource "azurerm_static_web_app_custom_domain" "custom_domain" {
4242
static_web_app_id = azurerm_static_web_app.blazor-client.id
4343
domain_name = "${data.cloudflare_record.cname_record.hostname}"

0 commit comments

Comments
 (0)