Skip to content
This repository has been archived by the owner on Oct 29, 2018. It is now read-only.

Create a HostedZone for sheltertech.org #7

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions regions/us-east-1.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ defaults:

stacks:

- name: SheltertechDNS

- name: IAMInfrastructureGroup
capabilities: CAPABILITY_IAM

Expand Down
43 changes: 43 additions & 0 deletions templates/SheltertechDNS.json
Original file line number Diff line number Diff line change
@@ -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" }
}
}
}
}
}