Skip to content

Instantly share code, notes, and snippets.

@saurabhj
Last active November 9, 2022 08:37
Show Gist options
  • Save saurabhj/2038097ad3762eee77a57c9ab5b38f7b to your computer and use it in GitHub Desktop.
Save saurabhj/2038097ad3762eee77a57c9ab5b38f7b to your computer and use it in GitHub Desktop.
AWS S3 Give permission to one specific S3 bucket

Name of bucket: my-bucket

{
  "Statement": [
    {
      "Action": "s3:*",
      "Effect": "Allow",
      "Resource": [
        "arn:aws:s3:::my-bucket",
        "arn:aws:s3:::my-bucket/*"
      ]
    },
    {
      "Effect": "Allow",
      "Action": "s3:ListAllMyBuckets",
      "Resource": "arn:aws:s3:::*"
    }
  ]
}

via: https://stackoverflow.com/a/13497647

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