Created
August 5, 2015 10:27
-
-
Save ryo0301/f09e37ddfd7413504ab8 to your computer and use it in GitHub Desktop.
Route53のAレコードをawscliで更新する ref: http://qiita.com/ryo0301/items/82bd4fab7f2faefe7ce7
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
$ aws route53 get-change --id /change/XXXXXXXXXXXXX |
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
{ | |
"Version": "2012-10-17", | |
"Statement": [ | |
{ | |
"Effect": "Allow", | |
"Action": "route53:ChangeResourceRecordSets", | |
"Resource": "arn:aws:route53:::hostedzone/XXXXXXXXXXXXXX" | |
}, | |
{ | |
"Effect": "Allow", | |
"Action": "route53:GetChange", | |
"Resource": "arn:aws:route53:::change/*" | |
} | |
] | |
} |
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
{ | |
"Comment" : "", | |
"Changes" : [ | |
{ | |
"Action" : "UPSERT", | |
"ResourceRecordSet" : { | |
"Name" : "my.example.com", | |
"Type" : "A", | |
"TTL" : 300, | |
"ResourceRecords" : [ | |
{ | |
"Value": "0.0.0.0" | |
}, | |
{ | |
"Value": "0.0.0.0" | |
} | |
] | |
} | |
} | |
] | |
} |
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
{ | |
"ChangeInfo": { | |
"Status": "INSYNC", | |
"Comment": "comment", | |
"SubmittedAt": "2015-08-05T00:00:00.000Z", | |
"Id": "/change/XXXXXXXXXXXXX" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment