How to do it...

  1. In a new file, define the template version and description:
      AWSTemplateFormatVersion: "2010-09-09"        Description: Create a weighted DNS setup for canary deployments.
  1. Start the Parameters section and the required parameters:
      Parameters:         HostedZoneName:           Type: String           Description: The hosted zone to create records in          DomainName:           Type: String           Description: The domain name to create in the hosted zone          OldResource:           Type: String           Description: The older resource domain name          NewResource:           Type: String           Description: The newer resource domain name
  1. Include the optional parameters (such as those with defaults) in the Parameters section:
      OldWeight:         Type: Number         Default: 1  Description: The ratio of requests to send ...

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.