diff --git a/regions/us-east-1.yml b/regions/us-east-1.yml index 6d53411..d645230 100644 --- a/regions/us-east-1.yml +++ b/regions/us-east-1.yml @@ -34,6 +34,8 @@ defaults: stacks: + - name: SheltertechDNS + - name: IAMInfrastructureGroup capabilities: CAPABILITY_IAM diff --git a/templates/SheltertechDNS.json b/templates/SheltertechDNS.json new file mode 100644 index 0000000..fb5fc3a --- /dev/null +++ b/templates/SheltertechDNS.json @@ -0,0 +1,43 @@ +{ + "AWSTemplateFormatVersion" : "2010-09-09", + "Description" : "This template is used to manage DNS for sheltertech.org", + "Resources": { + "HostedZone": { + "Type": "AWS::Route53::HostedZone", + "Properties": { + "Name": "sheltertech.org", + "HostedZoneConfig": { + "Comment": "HostedZone for sheltertech.org." + } + } + }, + "SheltertechCNAME" : { + "Type" : "AWS::Route53::RecordSet", + "DependsOn": "HostedZone", + "Properties" : { + "HostedZoneName" : "sheltertech.org.", + "Comment" : "CNAME to sheltertech S3 Bucket website", + "Name" : "sheltertech.org.", + "Type" : "A", + "AliasTarget" : { + "DNSName" : "sheltertech.org.s3-website-us-east-1.amazonaws.com", + "HostedZoneId" : { "Ref" : "HostedZone" } + } + } + }, + "WWWSheltertechCNAME" : { + "Type" : "AWS::Route53::RecordSet", + "DependsOn": "HostedZone", + "Properties" : { + "HostedZoneName" : "sheltertech.org.", + "Comment" : "www.sheltertech.org CNAME", + "Name" : "www.sheltertech.org.", + "Type" : "A", + "AliasTarget" : { + "DNSName" : "www.sheltertech.org.s3-website-us-east-1.amazonaws.com", + "HostedZoneId" : { "Ref" : "HostedZone" } + } + } + } + } +}