Last active
May 14, 2019 18:16
-
-
Save begmaroman/d548aabe9b3669bd03bf2dc249e118f3 to your computer and use it in GitHub Desktop.
AWS Policy for acme-dns-route53
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": [ | |
"logs:CreateLogGroup" | |
], | |
"Resource": "arn:aws:logs:<AWS_REGION>:<AWS_ACCOUNT_ID>:*" | |
}, | |
{ | |
"Effect": "Allow", | |
"Action": [ | |
"logs:PutLogEvents", | |
"logs:CreateLogStream" | |
], | |
"Resource": "arn:aws:logs:<AWS_REGION>:<AWS_ACCOUNT_ID>:log-group:/aws/lambda/acme-dns-route53:*" | |
}, | |
{ | |
"Sid": "", | |
"Effect": "Allow", | |
"Action": [ | |
"route53:ListHostedZones", | |
"cloudwatch:PutMetricData", | |
"acm:ImportCertificate", | |
"acm:ListCertificates" | |
], | |
"Resource": "*" | |
}, | |
{ | |
"Sid": "", | |
"Effect": "Allow", | |
"Action": [ | |
"sns:Publish", | |
"route53:GetChange", | |
"route53:ChangeResourceRecordSets", | |
"acm:ImportCertificate", | |
"acm:DescribeCertificate" | |
], | |
"Resource": [ | |
"arn:aws:sns:${var.region}:<AWS_ACCOUNT_ID>:<TOPIC_NAME>", | |
"arn:aws:route53:::hostedzone/*", | |
"arn:aws:route53:::change/*", | |
"arn:aws:acm:<AWS_REGION>:<AWS_ACCOUNT_ID>:certificate/*" | |
] | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment