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

Add apex domain validation #54

Closed ConnorKirk closed 2 years ago

ConnorKirk commented 2 years ago

Issue #, if available:

53

Description of changes: This PR adds domain validation for the apex record if required.

This feature previously existed in the sample, but was accidentally omitted when I refactored the provisioning of certificates from the custom resource to use AWS::ACM::Certificate.

Testing

I have tested this by deploying the template, creating an apex domain.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.