There's more...

A hosted zone with no DNS records will be of limited use to you. Here are some examples of records that you may wish to add to your template:

  DNSRecords: 
Type: AWS::Route53::RecordSetGroup
Properties:
HostedZoneId:
Ref: DNSHostedZone
RecordSets:
- Name: !Ref DomainName
Type: A
TTL: 60
ResourceRecords:
- "127.0.0.1"
- Name: !Ref DomainName
Type: MX
TTL: 60
ResourceRecords:
- "10 smtp.example.org"
- "20 smtp.example.org"
- Name: !Ref DomainName
Type: TXT
TTL: 60
ResourceRecords:
- '"v=spf1 include:spf.example.org ?all"'

Some items of note:
For the priority in MX records, add the number at the start of the record, followed by a space.

For TXT records such as spf entries, which typically need to be quoted, you can surround double quotes with single quotes.

Here's how this looks in the Route 53 web console:

Hosting a domain
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset