route53_hosted_zone.yaml
---

Route53 Hosted Zone CloudFormation Deployment

This CloudFormation template will create a Route53 Hosted Zone.

AWSTemplateFormatVersion: "2010-09-09" Description: Route53 Hosted Zone

Parameters

These are the input parameters for this template. All of these parameters must be supplied for this template to be deployed.

Parameters:

HostName to be used in tagging the EC2 instance.

ZoneName: Type: String Description: "Full DNS of the Hosted Zone, ie 'app-prod-aws.arizona.edu'" Default: app-prod-aws.arizona.edu

Tags

TagService: Type: String Description: Exact Service Name from Service Catalog TagEnvironment: Type: String Description: Environment for this Service, ie dev, tst, nonprod, etc TagContact: Type: String Description: NetID of the Technical Contact TagAccountNumber: Type: String Description: KFS Account Number TagTicketNumber: Type: String Description: JIRA or other Tracking Ticket ID

Resources

This is the EC2 instance deployed by the template.

Resources:

Route53HostedZone

Creates a Route53 Hosted Zone.

Route53HostedZone: Type: "AWS::Route53::HostedZone" Properties: Name: !Sub "${ZoneName}." HostedZoneTags: - Key: Name Value: !Sub "${ZoneName} Route53 Hosted Zone" - Key: service Value: !Ref TagService - Key: environment Value: !Ref TagEnvironment - Key: contactnetid Value: !Ref TagContact - Key: accountnumber Value: !Ref TagAccountNumber - Key: ticketnumber Value: !Ref TagTicketNumber

Outputs

Output values that can be viewed from the AWS CloudFormation console.

Outputs: Route53HostedZone: Description: "Route 53 Hosted Zone ID" Value: !Ref Route53HostedZone Export: Name: !Sub "${AWS::StackName}-zone-id" Route53DNS: Description: "The DNS Name" Value: !Ref ZoneName Export: Name: !Sub "${AWS::StackName}-dns"