1 Answer
- Newest
- Most votes
- Most comments
0
As apex records must be A records, and Route53 aliases effectively lookup their destination to return the IP addresses when they are queried, aliases have to point to other AWS resources (such as CloudFront CDNs). Your suggestion would be a good solution. It is also recommended to redirect HTTP requests for apex domains to their www records.
My recommendation is to make sure the Lambda@Edge is configured for the origin-facing request event, and sets a high Cache-Control max-age header in the response. Also make sure that you can handle both HTTPS and HTTP requests.
Relevant content
- Accepted Answerasked 5 years ago
- AWS OFFICIALUpdated 6 months ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 2 years ago