Skip to content

Instantly share code, notes, and snippets.

@chrisblackwell
Created June 10, 2022 16:37
Show Gist options
  • Save chrisblackwell/0c8ed02a8f8fb5289c0954e87b0aa8ee to your computer and use it in GitHub Desktop.
Save chrisblackwell/0c8ed02a8f8fb5289c0954e87b0aa8ee to your computer and use it in GitHub Desktop.
S3 Read and Write Bucket IAM Policy
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "ListObjectsInBucket",
"Effect": "Allow",
"Action": ["s3:ListBucket"],
"Resource": ["arn:aws:s3:::bucket-name"]
},
{
"Sid": "AllObjectActions",
"Effect": "Allow",
"Action": "s3:*Object",
"Resource": ["arn:aws:s3:::bucket-name/*"]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment