An attempt at a python script that inserts an A record into a Route53 DNS Zone when a system boots. I wrote it in 2016 shortly after I joined AWS. No idea if this even works any more. It's probably kinda lame.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 

26 lines
621 B

{
"Version": "2012-10-17",
"Statement": [
{
"Action": [
"route53:ChangeResourceRecordSets",
"route53:GetHostedZone",
"route53:ListResourceRecordSets"
],
"Effect": "Allow",
"Resource": [
"arn:aws:route53:::hostedzone/[ZONEID]",
]
},
{
"Action": [
"route53:ListHostedZones",
"ec2:DescribeInstances"
],
"Effect": "Allow",
"Resource": [
"*"
]
}
]
}