Skip to content

Instantly share code, notes, and snippets.

@xynova
Last active August 18, 2018 07:11
Show Gist options
  • Save xynova/c7739dea35978d84e24766ea61a867cd to your computer and use it in GitHub Desktop.
Save xynova/c7739dea35978d84e24766ea61a867cd to your computer and use it in GitHub Desktop.
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "AllowOpenvpnDnsUpdate",
"Effect": "Allow",
"Action": [
"route53:ChangeResourceRecordSets"
],
"Resource": [
"arn:aws:route53:::hostedzone/<<ZONE_ID_HERE>>"
]
},
{
"Sid": "AllowDecryptDatabasePassword",
"Effect": "Allow",
"Action": [
"kms:Encrypt",
"kms:Decrypt",
"kms:ReEncrypt*",
"kms:GenerateDataKey*",
"kms:DescribeKey"
],
"Resource": "arn:aws:kms:ap-southeast-2:<<ACCOUNT_ID>>:key/<<KEY_TO_DECRYPT_DATABASE_SECRET>>"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment