Skip to content

Instantly share code, notes, and snippets.

@denzhel
Created April 14, 2022 18:22
Show Gist options
  • Select an option

  • Save denzhel/c8d6a04b8496aadc30ed0e40849895ae to your computer and use it in GitHub Desktop.

Select an option

Save denzhel/c8d6a04b8496aadc30ed0e40849895ae to your computer and use it in GitHub Desktop.
AWS IAM allow access for S3 bucket

To allow a ceratin resource to access a S3 bucket, use the following IAM policy:

        {
            "Effect": "Allow",
            "Action": [
                "s3:*"
            ],
            "Resource": [
                "arn:aws:s3:::<bucketName>/*",
                "arn:aws:s3:::<bucketName>"
            ]
        }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment