AWS s3 bucket policy and IAM policy

Create a bucket

  • While creating the bucket the permissions settings are misleading, so just leave it all default.

Set bucket policy

  • If you want to allow public to read we need to generate the following policy.

Create IAM user

  • Create the user first and then add this inline policy IAM user to grant full access.