cardel

Untitled

Dec 29th, 2025
189
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JSON 2.07 KB | None | 0 0
  1. {
  2.   "Version": "2012-10-17",
  3.   "Statement": [
  4.     {
  5.       "Sid": "EC2SpecificInstanceBasicOps",
  6.       "Effect": "Allow",
  7.       "Action": [
  8.         "ec2:DescribeInstances",
  9.         "ec2:DescribeInstanceStatus",
  10.         "ec2:StartInstances",
  11.         "ec2:StopInstances",
  12.         "ec2:RebootInstances"
  13.       ],
  14.       "Resource": "arn:aws:ec2:REGION:ACCOUNT_ID:instance/INSTANCE_ID"
  15.     },
  16.  
  17.     {
  18.       "Sid": "EC2DescribeNetworkingNeededForConsole",
  19.       "Effect": "Allow",
  20.       "Action": [
  21.         "ec2:DescribeVpcs",
  22.         "ec2:DescribeSubnets",
  23.         "ec2:DescribeNetworkInterfaces",
  24.         "ec2:DescribeSecurityGroups"
  25.       ],
  26.       "Resource": "*"
  27.     },
  28.  
  29.     {
  30.       "Sid": "ManageSecurityGroupRules",
  31.       "Effect": "Allow",
  32.       "Action": [
  33.         "ec2:AuthorizeSecurityGroupIngress",
  34.         "ec2:AuthorizeSecurityGroupEgress",
  35.         "ec2:RevokeSecurityGroupIngress",
  36.         "ec2:RevokeSecurityGroupEgress",
  37.         "ec2:ModifySecurityGroupRules"
  38.       ],
  39.       "Resource": "*",
  40.       "Condition": {
  41.         "StringEquals": {
  42.           "ec2:Region": "REGION"
  43.         }
  44.       }
  45.     },
  46.  
  47.     {
  48.       "Sid": "S3ListBucket",
  49.       "Effect": "Allow",
  50.       "Action": [
  51.         "s3:ListBucket",
  52.         "s3:ListBucketMultipartUploads"
  53.       ],
  54.       "Resource": "arn:aws:s3:::BUCKET_NAME"
  55.     },
  56.     {
  57.       "Sid": "S3ReadWriteObjects",
  58.       "Effect": "Allow",
  59.       "Action": [
  60.         "s3:GetObject",
  61.         "s3:PutObject",
  62.         "s3:DeleteObject",
  63.         "s3:AbortMultipartUpload",
  64.         "s3:ListMultipartUploadParts"
  65.       ],
  66.       "Resource": "arn:aws:s3:::BUCKET_NAME/*"
  67.     },
  68.  
  69.     {
  70.       "Sid": "EFSDescribeAndClientAccess",
  71.       "Effect": "Allow",
  72.       "Action": [
  73.         "elasticfilesystem:DescribeFileSystems",
  74.         "elasticfilesystem:DescribeMountTargets",
  75.         "elasticfilesystem:DescribeAccessPoints",
  76.         "elasticfilesystem:ClientMount",
  77.         "elasticfilesystem:ClientWrite"
  78.       ],
  79.       "Resource": "arn:aws:elasticfilesystem:REGION:ACCOUNT_ID:file-system/EFS_FS_ID"
  80.     }
  81.   ]
  82. }
  83.  
Advertisement
Add Comment
Please, Sign In to add comment