Skip to content

Instantly share code, notes, and snippets.

@dayitv89
Last active April 29, 2021 06:14
Show Gist options
  • Select an option

  • Save dayitv89/7eed1275cec567cd53c8536b22d19a1e to your computer and use it in GitHub Desktop.

Select an option

Save dayitv89/7eed1275cec567cd53c8536b22d19a1e to your computer and use it in GitHub Desktop.
S3 user access to specific bucket and disable cors
[
{
"AllowedHeaders": [
"*"
],
"AllowedMethods": [
"PUT",
"POST"
],
"AllowedOrigins": [
"*"
],
"ExposeHeaders": [],
"MaxAgeSeconds": 3000
}
]
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "VisualEditor0",
"Effect": "Allow",
"Action": "s3:ListBucket",
"Resource": "arn:aws:s3:::<BUCKET_NAME>"
},
{
"Sid": "VisualEditor1",
"Effect": "Allow",
"Action": [
"s3:PutObject",
"s3:GetObject",
"s3:DeleteObject",
"s3:PutObjectAcl"
],
"Resource": "arn:aws:s3:::<BUCKET_NAME>/*"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment