Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
51 lines (37 sloc) 1.13 KB
# Note, You need at least 1 domain and this is not free tier.
# Pricing : https://aws.amazon.com/route53/pricing/
#
---
AWSTemplateFormatVersion: "2010-09-09"
Description: >
This template deploys route53 Setup,
Alias Web Elastic Load Balancer to <domain>
Parameters:
PMWEBDOMAIN:
Description: "A reference to the Webserver FQDN domain name"
Type: "String"
PMHostedZone:
Description: "A reference to the Hosted Zone"
Type: "String"
PMWEBLBDNSName:
Description: "A reference to the Webserver ELB DNS Name"
Type: "String"
PMWEBLBHostedZoneId:
Description: "A reference to the Webserver ELB Hosted Zone ID"
Type: "String"
Resources:
Route53:
Type: "AWS::Route53::RecordSetGroup"
Properties:
HostedZoneName: !Sub "${PMHostedZone}."
Comment: "Zone apex alias targeted to myELB LoadBalancer."
RecordSets:
- Name: !Sub "${PMWEBDOMAIN}."
Type: 'A'
AliasTarget:
HostedZoneId: !Ref "PMWEBLBHostedZoneId"
DNSName: !Ref "PMWEBLBDNSName"
Outputs:
WEBRoute53:
Description: "A reference to the Route53"
Value: !Ref "Route53"
You can’t perform that action at this time.