How to do it...

  1. Go ahead and create a new CloudFormation template. We'll add some Parameters for the items we've mentioned previously:
      Parameters:         DomainName:           Description: Your domain name (example.org)           Type: String         LoadBalancerDNSNameRegionA:           Description: The DNS name of your ELB in region A           Type: String         LoadBalancerHostedZoneRegionA:           Description: The Hosted Zone ID of your ELB in region A           Type: String         LoadBalancerDNSNameRegionB:           Description: The DNS name of your ELB in region B           Type: String         LoadBalancerHostedZoneRegionB:           Description: The Hosted Zone ID of your ELB in region B           Type: String
  1. The first Resource we want is the HostedZone resource for our domain name. Add it to your template as follows:
      Resources:  DNSHostedZone: ...

Get AWS Administration Cookbook now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.