File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -39,13 +39,13 @@ resource "azurerm_static_web_app_custom_domain" "custom_domain" {
3939 validation_type = " cname-delegation"
4040}
4141
42- # data "cloudflare_record" "cname_record" {
43- # zone_id = data.cloudflare_zone.dns_zone.id
44- # hostname = "${local.subdomain}.dddsouthwest.com"
45- # }
46-
47- # resource "azurerm_static_web_app_custom_domain" "custom_domain" {
48- # static_web_app_id = azurerm_static_web_app.blazor-client.id
49- # domain_name = "${data.cloudflare_record.cname_record.hostname}"
50- # validation_type = "cname-delegation"
51- # }
42+ data "cloudflare_record" "cname_record" {
43+ zone_id = data. cloudflare_zone . dns_zone . id
44+ hostname = " ${ local . subdomain } .dddsouthwest.com"
45+ }
46+
47+ resource "azurerm_static_web_app_custom_domain" "custom_domain" {
48+ static_web_app_id = azurerm_static_web_app. blazor-client . id
49+ domain_name = " ${ data . cloudflare_record . cname_record . hostname } "
50+ validation_type = " cname-delegation"
51+ }
You can’t perform that action at this time.
0 commit comments