Skip to content

Instantly share code, notes, and snippets.

@markeissler
Forked from lusis/iam-s3-policy.json
Created January 8, 2019 00:50
Show Gist options
  • Save markeissler/5dfc3cfb1ccda982e22483468dcb7640 to your computer and use it in GitHub Desktop.
Save markeissler/5dfc3cfb1ccda982e22483468dcb7640 to your computer and use it in GitHub Desktop.
A sample AWS IAM json policy file with read-only access to certain S3 buckets
{
"Statement":[{
"Effect":"Allow",
"Action":["s3:ListBucket","s3:GetObject","s3:GetObjectVersion"],
"Resource":["arn:aws:s3:::my_bucket/*","arn:aws:s3:::my_bucket"]
}
],
"Statement":[{
"Effect":"Allow",
"Action":["s3:ListBucket","s3:GetObject","s3:GetObjectVersion"],
"Resource":["arn:aws:s3:::my_other_bucket/*","arn:aws:s3:::my_other_bucket"]
}
],
"Statement":[{
"Effect":"Allow",
"Action":["s3:ListAllMyBuckets"],
"Resource":"*",
"Condition": {}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment