Created
August 4, 2020 02:50
-
-
Save rajanpanchal/f13b4e0f8edab9e3fb4f6e7ec10c9ad6 to your computer and use it in GitHub Desktop.
Markdium-Sign Up
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
KmsKey: | |
Type: AWS::KMS::Key | |
Properties: | |
Description: CMK for encrypting and decrypting | |
KeyPolicy: | |
Version: '2012-10-17' | |
Id: key-default-1 | |
Statement: | |
- Sid: Enable IAM User Permissions | |
Effect: Allow | |
Principal: | |
AWS: !Sub arn:aws:iam::${AWS::AccountId}:root | |
Action: kms:* | |
Resource: '*' | |
- Sid: Allow administration of the key | |
Effect: Allow | |
Principal: | |
AWS: !Sub arn:aws:iam::${AWS::AccountId}:user/${KeyAdmin} | |
Action: | |
- kms:Create* | |
- kms:Describe* | |
- kms:Enable* | |
- kms:List* | |
- kms:Put* | |
- kms:Update* | |
- kms:Revoke* | |
- kms:Disable* | |
- kms:Get* | |
- kms:Delete* | |
- kms:ScheduleKeyDeletion | |
- kms:CancelKeyDeletion | |
Resource: '*' | |
- Sid: Allow use of the key | |
Effect: Allow | |
Principal: | |
AWS: !Sub arn:aws:iam::${AWS::AccountId}:user/${KeyUser} | |
Action: | |
- kms:DescribeKey | |
- kms:Encrypt | |
- kms:Decrypt | |
- kms:ReEncrypt* | |
- kms:GenerateDataKey | |
- kms:GenerateDataKeyWithoutPlaintext | |
Resource: '*' | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment