Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save ccabanero/8040623 to your computer and use it in GitHub Desktop.
Save ccabanero/8040623 to your computer and use it in GitHub Desktop.
AWS - S3 bucket policy - allow user to use AWS console to view S3 buckets and have read and write permission on a single specified bucket
1. Use Identity and Access Manager (IAM) in the AWS console.
2. Create a group or user. Create a password so that the user can use it to authenticate your organization's AWS console.
3. Go to the group's (or user's) profile. Go to Permissions. Add the following policy.
{
"Statement": [
{
"Effect": "Allow",
"Action": "s3:ListAllMyBuckets",
"Resource": "arn:aws:s3:::*"
},
{
"Action": "s3:*",
"Effect": "Allow",
"Resource": [
"arn:aws:s3:::mybucketname",
"arn:aws:s3:::mybucketname/*"
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment