Open kwhitejr opened 3 years ago
I encountered the same behaviour and setting dns_alias_enabled = true
resolved it.
Yep that makes sense. I'd say this issue is resolved
Hmm... could argue that if you pass in the var.parent_zone_name
that the var.dns_alias_enabled
is extraneous.
Found a bug? Maybe our Slack Community can help.
Describe the Bug
I used this module with a pre-existing Route53 Hosted Zone and ACM Certificate. I included
aliases = [...]
in my configuration, but Terraform did not create the expected A records in Route53.Expected Behavior
Terraform would deploy an A record for each alias.
Steps to Reproduce
Steps to reproduce the behavior:
main.tf
in relevant partdata "aws_route53_zone" "main" { name = local.domain_name private_zone = false }
data "aws_acm_certificate" "certificate" { domain = local.domain_name types = ["AMAZON_ISSUED"] most_recent = true }
module "cloudfront-s3-cdn" { source = "cloudposse/cloudfront-s3-cdn/aws" version = "0.35.0"
name = local.domain_name origin_force_destroy = true encryption_enabled = true
DNS Settings
parent_zone_id = data.aws_route53_zone.main.id acm_certificate_arn = data.aws_acm_certificate.certificate.arn aliases = [local.domain_name, "www.${local.domain_name}"] ipv6_enabled = true
Caching Settings
default_ttl = 300 compress = true
Website settings
website_enabled = true index_document = "index.html" error_document = "index.html"
depends_on = [data.aws_acm_certificate.certificate] }