Skip to content

Instantly share code, notes, and snippets.

@thiagoavadore
Last active June 15, 2020 10:10
Show Gist options
  • Save thiagoavadore/9714ebe269993b7c8f3ddd91216cfa45 to your computer and use it in GitHub Desktop.
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
{
"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