Created
January 9, 2020 19:24
-
-
Save jdowning/b535896edc7a7e37dacd791328c640b0 to your computer and use it in GitHub Desktop.
KMS IAM Policy for a shared Customer Master Key
This file contains hidden or 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
{ | |
"Id": "KMS-policy", | |
"Version": "2012-10-17", | |
"Statement": [ | |
{ | |
"Sid": "Enable IAM User Permissions", | |
"Effect": "Allow", | |
"Principal": { | |
"AWS": "arn:aws:iam::<your_aws_account_id>:root" | |
}, | |
"Action": "kms:*", | |
"Resource": "*" | |
}, | |
{ | |
"Sid": "Allow use of the key", | |
"Effect": "Allow", | |
"Principal": { | |
"AWS": "arn:aws:iam::<our_aws_account_id>:root" | |
}, | |
"Action": [ | |
"kms:Encrypt", | |
"kms:Decrypt", | |
"kms:ReEncrypt*", | |
"kms:GenerateDataKey*", | |
"kms:DescribeKey" | |
], | |
"Resource": "*" | |
}, | |
{ | |
"Sid": "Allow attachment of persistent resources", | |
"Effect": "Allow", | |
"Principal": { | |
"AWS": "arn:aws:iam::<our_aws_account_id>:root" | |
}, | |
"Action": [ | |
"kms:CreateGrant", | |
"kms:ListGrants", | |
"kms:RevokeGrant" | |
], | |
"Resource": "*", | |
"Condition": { | |
"Bool": { | |
"kms:GrantIsForAWSResource": "true" | |
} | |
} | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment