Skip to content

Instantly share code, notes, and snippets.

@wingkwong
Created July 27, 2020 10:36
Show Gist options
  • Save wingkwong/299774378cf2cc80adb2baffd53c6020 to your computer and use it in GitHub Desktop.
Save wingkwong/299774378cf2cc80adb2baffd53c6020 to your computer and use it in GitHub Desktop.
Grant a user Amazon S3 console access to only a certain bucket
{
"Version":"2012-10-17",
"Statement":[
{
"Effect":"Allow",
"Action":[
"s3:ListBucket"
],
"Resource":"arn:aws:s3:::awsexamplebucket"
},
{
"Effect":"Allow",
"Action":[
"s3:PutObject",
"s3:GetObject"
],
"Resource":"arn:aws:s3:::awsexamplebucket/*"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment