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 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.