Skip to content

Instantly share code, notes, and snippets.

@ryo0301
Created August 5, 2015 10:27
Show Gist options
  • Save ryo0301/f09e37ddfd7413504ab8 to your computer and use it in GitHub Desktop.
Save ryo0301/f09e37ddfd7413504ab8 to your computer and use it in GitHub Desktop.
Route53のAレコードをawscliで更新する ref: http://qiita.com/ryo0301/items/82bd4fab7f2faefe7ce7
$ aws route53 get-change --id /change/XXXXXXXXXXXXX
{
"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/*"
}
]
}
{
"Comment" : "",
"Changes" : [
{
"Action" : "UPSERT",
"ResourceRecordSet" : {
"Name" : "my.example.com",
"Type" : "A",
"TTL" : 300,
"ResourceRecords" : [
{
"Value": "0.0.0.0"
},
{
"Value": "0.0.0.0"
}
]
}
}
]
}
{
"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