Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- "Version": "2012-10-17",
- "Statement": [
- {
- "Sid": "EC2SpecificInstanceBasicOps",
- "Effect": "Allow",
- "Action": [
- "ec2:DescribeInstances",
- "ec2:DescribeInstanceStatus",
- "ec2:StartInstances",
- "ec2:StopInstances",
- "ec2:RebootInstances"
- ],
- "Resource": "arn:aws:ec2:REGION:ACCOUNT_ID:instance/INSTANCE_ID"
- },
- {
- "Sid": "EC2DescribeNetworkingNeededForConsole",
- "Effect": "Allow",
- "Action": [
- "ec2:DescribeVpcs",
- "ec2:DescribeSubnets",
- "ec2:DescribeNetworkInterfaces",
- "ec2:DescribeSecurityGroups"
- ],
- "Resource": "*"
- },
- {
- "Sid": "ManageSecurityGroupRules",
- "Effect": "Allow",
- "Action": [
- "ec2:AuthorizeSecurityGroupIngress",
- "ec2:AuthorizeSecurityGroupEgress",
- "ec2:RevokeSecurityGroupIngress",
- "ec2:RevokeSecurityGroupEgress",
- "ec2:ModifySecurityGroupRules"
- ],
- "Resource": "*",
- "Condition": {
- "StringEquals": {
- "ec2:Region": "REGION"
- }
- }
- },
- {
- "Sid": "S3ListBucket",
- "Effect": "Allow",
- "Action": [
- "s3:ListBucket",
- "s3:ListBucketMultipartUploads"
- ],
- "Resource": "arn:aws:s3:::BUCKET_NAME"
- },
- {
- "Sid": "S3ReadWriteObjects",
- "Effect": "Allow",
- "Action": [
- "s3:GetObject",
- "s3:PutObject",
- "s3:DeleteObject",
- "s3:AbortMultipartUpload",
- "s3:ListMultipartUploadParts"
- ],
- "Resource": "arn:aws:s3:::BUCKET_NAME/*"
- },
- {
- "Sid": "EFSDescribeAndClientAccess",
- "Effect": "Allow",
- "Action": [
- "elasticfilesystem:DescribeFileSystems",
- "elasticfilesystem:DescribeMountTargets",
- "elasticfilesystem:DescribeAccessPoints",
- "elasticfilesystem:ClientMount",
- "elasticfilesystem:ClientWrite"
- ],
- "Resource": "arn:aws:elasticfilesystem:REGION:ACCOUNT_ID:file-system/EFS_FS_ID"
- }
- ]
- }
Advertisement
Add Comment
Please, Sign In to add comment