diff --git a/infrastructure/terraform/components/dnsroot/route53_record_subdomain_delegated_zones.tf b/infrastructure/terraform/components/dnsroot/route53_record_subdomain_delegated_zones.tf index 9a81743..a31d31e 100644 --- a/infrastructure/terraform/components/dnsroot/route53_record_subdomain_delegated_zones.tf +++ b/infrastructure/terraform/components/dnsroot/route53_record_subdomain_delegated_zones.tf @@ -2,7 +2,7 @@ resource "aws_route53_record" "subdomain_delegated_zones" { for_each = { for i, dz in var.delegated_dns_zones : - dz.subdomain => dz + dz.subdomain => dz } zone_id = aws_route53_zone.root.zone_id diff --git a/infrastructure/terraform/components/dnsroot/route53_webcms_cname.tf b/infrastructure/terraform/components/dnsroot/route53_webcms_cname.tf index f8ec42e..05b2194 100644 --- a/infrastructure/terraform/components/dnsroot/route53_webcms_cname.tf +++ b/infrastructure/terraform/components/dnsroot/route53_webcms_cname.tf @@ -4,5 +4,5 @@ resource "aws_route53_record" "cms_cname" { type = "CNAME" ttl = 5 - records = ["nhsdigital.github.io"] + records = ["nhsdigital.github.io"] } \ No newline at end of file diff --git a/infrastructure/terraform/components/dnsroot/variables.tf b/infrastructure/terraform/components/dnsroot/variables.tf index 99a2803..2a89139 100644 --- a/infrastructure/terraform/components/dnsroot/variables.tf +++ b/infrastructure/terraform/components/dnsroot/variables.tf @@ -65,15 +65,15 @@ variable "root_domain_name" { variable "delegated_dns_zones" { type = list(object({ - subdomain = string, - ns_records = list(string), - })) + subdomain = string, + ns_records = list(string), + })) description = "An object representing DNS zone delegation nameservers" - default = [] + default = [] } variable "cms_cname" { type = string description = "The CNAME to be used for Web CMS static site" - default = "webcms" + default = "webcms" }