Skip to content

Instantly share code, notes, and snippets.

@themegabyte
Last active May 16, 2023 09:46
Show Gist options
  • Select an option

  • Save themegabyte/e6caa7c690eaec3abf8311954e8e91ef to your computer and use it in GitHub Desktop.

Select an option

Save themegabyte/e6caa7c690eaec3abf8311954e8e91ef to your computer and use it in GitHub Desktop.
Amazon S3 Access Key Policy to scope access key to a single bucket
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Principal": {
"AWS": [
"*"
]
},
"Action": [
"s3:GetObject"
],
"Resource": [
"arn:aws:s3:::YOUR-BUCKET/*"
]
}
]
}
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": [
"s3:PutObject",
"s3:DeleteObject",
"s3:GetObject",
"s3:ListBucket"
],
"Resource": [
"arn:aws:s3:::YOUR-BUCKET/*"
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment