O'Reilly logo

AWS Administration Cookbook by Rowan Udell, Lucas Chan

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required