File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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+
4141resource "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 } "
You can’t perform that action at this time.
0 commit comments