Skip to content

Instantly share code, notes, and snippets.

@res0nat0r
Created September 15, 2015 16:42
Show Gist options
  • Save res0nat0r/ef243c313d7dafb50c38 to your computer and use it in GitHub Desktop.
Save res0nat0r/ef243c313d7dafb50c38 to your computer and use it in GitHub Desktop.
Update Route53 from CLI
#!/bin/bash -ex
aws route53 change-resource-record-sets \
--hosted-zone-id /hostedzone/$RECORD_SET --change-batch "
{
\"Changes\": [
{
\"Action\": \"UPSERT\",
\"ResourceRecordSet\": {
\"Name\": \"${RECORD}\",
\"Type\": \"A\",
\"TTL\": 60,
\"ResourceRecords\": [
{
\"Value\": \"${IP}\"
}
]
}
}
]
}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment