aws-samples / amazon-cloudfront-secure-static-site

Create a secure static website with CloudFront for your registered domain.
Apache License 2.0
385 stars 140 forks source link

ACM Domain Validation not Automatic for "Apex" Record #53

Closed alexblanck closed 2 years ago

alexblanck commented 2 years ago

When creating the stack with CreateApex set to yes and HostedZoneId set correctly, I observed that CNAME validation records were only created for the subdomain record and not for the apex record.

I believe this is because the template only provides DomainValidationOptions for the subdomain: https://github.com/aws-samples/amazon-cloudfront-secure-static-site/blob/master/templates/acm-certificate.yaml#L29

ConnorKirk commented 2 years ago

Hi Alex, Thanks for opening an issue

I'm investigating and will get back you

ConnorKirk commented 2 years ago

This should now be fixed. Thanks again Alex.