Skip to content

Instantly share code, notes, and snippets.

@jmatt
Created October 12, 2015 20:03
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save jmatt/a95ee63736c1ba64a363 to your computer and use it in GitHub Desktop.
Save jmatt/a95ee63736c1ba64a363 to your computer and use it in GitHub Desktop.
Bash command to add CNAME
{
"Comment": "A new CNAME for jsick's Read the Docs documentation.",
"Changes": [
{
"Action": "CREATE",
"ResourceRecordSet": {
"Name": "docs.lsst.codes.",
"Type": "CNAME",
"SetIdentifier" : "Read the Docs",
"Weight": 10,
"TTL": 900,
"ResourceRecords": [
{
"Value": "lsst-stack-docs.readthedocs.org"
}
]
}
}
]
}
# See http://docs.aws.amazon.com/cli/latest/reference/route53/change-resource-record-sets.html
aws route53 change-resource-record-sets --hosted-zone-id Z3TH0HRSNU67AM --change-batch file:///path/change-resource-record-sets.json
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment