Last active
June 15, 2020 10:10
-
-
Save thiagoavadore/9714ebe269993b7c8f3ddd91216cfa45 to your computer and use it in GitHub Desktop.
Route53 configuration file to update a Domain and its www version to a cloudfront distribution
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"Changes": [ | |
{ | |
"Action": "UPSERT", | |
"ResourceRecordSet": { | |
"AliasTarget": { | |
"HostedZoneId": "Z2FDTNDATAQYW2", | |
"EvaluateTargetHealth": false, | |
"DNSName": "<CLOUDFRONT_URI>" | |
}, | |
"Type": "A", | |
"Name": "<DOMAIN_NAME>" | |
} | |
}, | |
{ | |
"Action": "UPSERT", | |
"ResourceRecordSet": { | |
"ResourceRecords": [ | |
{ | |
"Value": "<CLOUDFRONT_URI>" | |
} | |
], | |
"Type": "CNAME", | |
"Name": "www.<DOMAIN_NAME>", | |
"TTL": 300 | |
} | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment