Skip to content

Instantly share code, notes, and snippets.

@Jlaird
Created February 22, 2017 20:39
Show Gist options
  • Save Jlaird/e039c235f320ab57bb57061dac219559 to your computer and use it in GitHub Desktop.
Save Jlaird/e039c235f320ab57bb57061dac219559 to your computer and use it in GitHub Desktop.
#!/bin/bash
#aws route53 create-hosted-zone --name altdotpop.com --caller-reference 2016-02-09-18:51 --hosted-zone-config Comment="Southcomm"
Id=$(aws route53 list-hosted-zones-by-name --dns-name baseplatform.io. --max-items 1 --query 'HostedZones[*].Id' --output text | awk -F'/hostedzone/' '{print $2}')
echo "
{
\"ResourceType\": \"hostedzonehostedzone\",
\"ResourceId\": \"$Id\",
\"AddTags\": [
{
\"Key\": \"Name\",
\"Value\": \"Digital\"
}
]
}
" > tags.json
#aws route53domains transfer-domain --cli-input-json file://domain.json
aws route53domains update-tags-for-domain --domain-name baseplatform.io --cli-input-json file://tags.json
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment