- In a new file, define the template version and description:
AWSTemplateFormatVersion: "2010-09-09" Description: Create a weighted DNS setup for canary deployments.
- 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
- 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 ...