Skip to content

Instantly share code, notes, and snippets.

@ironheart122
Created February 27, 2021 08:57
Show Gist options
  • Save ironheart122/3abcba571da82098643422c6d4320d34 to your computer and use it in GitHub Desktop.
Save ironheart122/3abcba571da82098643422c6d4320d34 to your computer and use it in GitHub Desktop.

Revisions

  1. Moncy Gopalan created this gist Feb 27, 2021.
    34 changes: 34 additions & 0 deletions aws-s3-policy.json
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,34 @@
    {
    "Version": "2012-10-17",
    "Statement": [
    {
    "Sid": "ConsoleAccess",
    "Effect": "Allow",
    "Action": [
    "s3:GetAccountPublicAccessBlock",
    "s3:GetBucketAcl",
    "s3:GetBucketLocation",
    "s3:GetBucketPolicyStatus",
    "s3:GetBucketPublicAccessBlock",
    "s3:ListAllMyBuckets"
    ],
    "Resource": "*"
    },
    {
    "Sid": "ListObjectsInBucket",
    "Effect": "Allow",
    "Action": ["s3:ListBucket"],
    "Resource": [
    "arn:aws:s3:::<BUCKET_NAME>"
    ]
    },
    {
    "Sid": "AllObjectActions",
    "Effect": "Allow",
    "Action": ["s3:GetObject", "s3:putObject", "s3:deleteObject"],
    "Resource": [
    "arn:aws:s3:::<BUCKET_NAME>/*"
    ]
    }
    ]
    }