Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- "Version": "2012-10-17",
- "Statement": [
- {
- "Effect": "Allow",
- "Action": [
- "ssm:StartSession"
- ],
- "Resource": [
- "arn:aws:ec2:*:*:instance/*"
- ],
- "Condition": {
- "StringLike": {
- "ssm:resourceTag/Environment": [
- "Development"
- ]
- }
- }
- },
- {
- "Effect": "Allow",
- "Action": [
- "ssm:DescribeSessions",
- "ssm:GetConnectionStatus",
- "ssm:DescribeInstanceProperties",
- "ec2:DescribeInstances"
- ],
- "Resource": "*"
- },
- {
- "Effect": "Allow",
- "Action": [
- "ssm:GetDocument"
- ],
- "Resource": [
- "arn:aws:ssm:*:*:document/SSM-SessionManagerRunShell"
- ],
- "Condition": {
- "BoolIfExists": {
- "ssm:SessionDocumentAccessCheck": "true"
- }
- }
- },
- {
- "Effect": "Allow",
- "Action": [
- "ssm:TerminateSession"
- ],
- "Resource": [
- "arn:aws:ssm:*:*:session/${aws:username}-*"
- ]
- }
- ]
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement