Skip to content

Instantly share code, notes, and snippets.

@netstx
Created March 2, 2021 21:13
Show Gist options
  • Save netstx/e2408c7de209ea44fab7a53b498ef7a5 to your computer and use it in GitHub Desktop.
Save netstx/e2408c7de209ea44fab7a53b498ef7a5 to your computer and use it in GitHub Desktop.
AWS Route53 IAM policy for CertBot DNS verification
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "VisualEditor0",
"Effect": "Allow",
"Action": [
"route53:GetHostedZone",
"route53:ChangeResourceRecordSets",
"route53:ListResourceRecordSets"
],
"Resource": "arn:aws:route53:::hostedzone/HOSTEDZONE1_ID_HERE"
},
{
"Sid": "VisualEditor1",
"Effect": "Allow",
"Action": [
"route53:GetHostedZone",
"route53:ChangeResourceRecordSets",
"route53:ListResourceRecordSets"
],
"Resource": "arn:aws:route53:::hostedzone/HOSTEDZONE2_ID_HERE"
},
{
"Sid": "VisualEditor2",
"Effect": "Allow",
"Action": [
"route53:ListHostedZones",
"route53:GetHostedZoneCount",
"route53:GetChange",
"route53:ListHostedZonesByName"
],
"Resource": "*"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment