Skip to content

Instantly share code, notes, and snippets.

@fizerkhan
Last active August 29, 2015 14:20
Show Gist options
  • Select an option

  • Save fizerkhan/bd9025bda525aceaab78 to your computer and use it in GitHub Desktop.

Select an option

Save fizerkhan/bd9025bda525aceaab78 to your computer and use it in GitHub Desktop.
What IAM policy do I need for S3 backups?
{
"Version": "2012-10-17",
"Statement":[
{
"Effect":"Allow",
"Action":"s3:*",
"Resource":[
"arn:aws:s3:::BUCKET_NAME",
"arn:aws:s3:::BUCKET_NAME/*"
]
},
{
"Effect":"Allow",
"Action":"s3:ListAllMyBuckets",
"Resource":[
"arn:aws:s3:::*"
]
}
]
}
@fizerkhan
Copy link
Author

Don't forget to replace BUCKET_NAME in the example above with your own bucket name

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment