Created
June 19, 2022 08:41
-
-
Save SyeedHasan/66f26c88e753a2a62e0ff5bcad9ea191 to your computer and use it in GitHub Desktop.
Policy for permissions to SSM, KMS, and Amazon S3
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
{ | |
"Version": "2012-10-17", | |
"Statement": [ | |
{ | |
"Effect": "Allow", | |
"Action": [ | |
"ssmmessages:CreateControlChannel", | |
"ssmmessages:CreateDataChannel", | |
"ssmmessages:OpenControlChannel", | |
"ssmmessages:OpenDataChannel", | |
"ssm:UpdateInstanceInformation" | |
], | |
"Resource": "*" | |
}, | |
{ | |
"Effect": "Allow", | |
"Action": [ | |
"s3:PutObject" | |
], | |
"Resource": "arn:aws:s3:::DOC-EXAMPLE-BUCKET/s3-bucket-prefix/*" | |
}, | |
{ | |
"Effect": "Allow", | |
"Action": [ | |
"s3:GetEncryptionConfiguration" | |
], | |
"Resource": "*" | |
}, | |
{ | |
"Effect": "Allow", | |
"Action": [ | |
"kms:Decrypt" | |
], | |
"Resource": "key-name" | |
}, | |
{ | |
"Effect": "Allow", | |
"Action": "kms:GenerateDataKey", | |
"Resource": "*" | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment