Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save jay-johnson/7ef356934178397d0c1e6f261335812a to your computer and use it in GitHub Desktop.
Save jay-johnson/7ef356934178397d0c1e6f261335812a to your computer and use it in GitHub Desktop.
S3 Bucket Policy for Public GET and specifying a user to have PUT + GET rights
{
    "Version": "2012-10-17",
    "Statement": [
        {
            "Sid": "statement1",
            "Effect": "Allow",
            "Principal": {
                "AWS": "arn:aws:iam::USER_ARN_ID:user/USER_IAM_ID"
            },
            "Action": [
                "s3:PutObject",
                "s3:PutObjectAcl",
                "s3:GetObject"
            ],
            "Resource": "arn:aws:s3:::BUCKET_NAME/*"
        },
        {
            "Sid": "AddPerm",
            "Effect": "Allow",
            "Principal": "*",
            "Action": "s3:GetObject",
            "Resource": "arn:aws:s3:::BUCKET_NAME/*"
        }
    ]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment