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.

Revisions

  1. saurabhj revised this gist Nov 9, 2022. 1 changed file with 1 addition and 3 deletions.
    4 changes: 1 addition & 3 deletions aws_s3_bucket_permission.md
    Original file line number Diff line number Diff line change
    @@ -10,9 +10,7 @@ Name of bucket: `my-bucket`
    "arn:aws:s3:::my-bucket",
    "arn:aws:s3:::my-bucket/*"
    ]
    }
    ],
    "Statement": [
    },
    {
    "Effect": "Allow",
    "Action": "s3:ListAllMyBuckets",
  2. saurabhj revised this gist Nov 9, 2022. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions aws_s3_bucket_permission.md
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,4 @@
    Name of bucket: bar
    Name of bucket: `my-bucket`

    ```
    {
    @@ -21,4 +21,4 @@ Name of bucket: bar
    ]
    }
    ```
    via: https://stackoverflow.com/a/8213772
    via: https://stackoverflow.com/a/13497647
  3. saurabhj created this gist Nov 9, 2022.
    24 changes: 24 additions & 0 deletions aws_s3_bucket_permission.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,24 @@
    Name of bucket: bar

    ```
    {
    "Statement": [
    {
    "Action": "s3:*",
    "Effect": "Allow",
    "Resource": [
    "arn:aws:s3:::my-bucket",
    "arn:aws:s3:::my-bucket/*"
    ]
    }
    ],
    "Statement": [
    {
    "Effect": "Allow",
    "Action": "s3:ListAllMyBuckets",
    "Resource": "arn:aws:s3:::*"
    }
    ]
    }
    ```
    via: https://stackoverflow.com/a/8213772