Creating DNS records

  1. Now that we have a hosted zone we can go ahead and create DNS records for it. For this we use the AWS resource type AWS::Route53::RecordSetGroup.
  2. We're going to create an A record for our domain's root/apex entry and we'll make it an alias. This alias will be configured to point to the AWS endpoint for S3-hosted websites in the particular region we choose to run this CloudFormation in.
  3. In order to archive region portability in our template, we'll use a mapping to provide all the endpoints. The values in this map are published by AWS in their API endpoints documentation. You won't need to look these up, however, because our code sample provides the most up-to-date endpoints (as of the time of writing this). The endpoints ...

Get AWS Administration Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.