Created
February 22, 2017 20:39
-
-
Save Jlaird/e039c235f320ab57bb57061dac219559 to your computer and use it in GitHub Desktop.
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
#!/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