Skip to content

Instantly share code, notes, and snippets.

@ruanbekker
Last active August 14, 2017 06:32
Show Gist options
  • Save ruanbekker/708ef84cc16a951c4ed7abb9cb597cc6 to your computer and use it in GitHub Desktop.
Save ruanbekker/708ef84cc16a951c4ed7abb9cb597cc6 to your computer and use it in GitHub Desktop.
AWS IAM S3 Policy Cheatsheet for S3

IAM Policies for S3

S3 Bucket Policy

IAM Policy:

List Bucket, Read Access to Objects in Path:

{
    "Version": "2012-10-17",
    "Statement": [
        {
            "Effect": "Allow",
            "Action": [
                "s3:List*",
                "s3:GetObject"
            ],
            "Resource": [
                "arn:aws:s3:::mysuperbucket/path/*"
            ]
        },
        {
            "Effect": "Allow",
            "Action": [
                "s3:ListBucket"
            ],
            "Resource": [
                "arn:aws:s3:::mysuperbucket"
            ]
        }
    ]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment