Skip to content

Instantly share code, notes, and snippets.

@gnzandrs
Last active February 8, 2018 20:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gnzandrs/21bbf2814b973896cd731e8eef63579b to your computer and use it in GitHub Desktop.
Save gnzandrs/21bbf2814b973896cd731e8eef63579b to your computer and use it in GitHub Desktop.
This is a Bucket Policity to Amazon Web Services S3 bucket that allows you read all the files under base directories. For example, you can use this for serve css and js bundles from s3 without use a ACL at the moment of the object upload.
{
"Version":"2012-10-17",
"Statement":[
{
"Sid":"ExampleFolderACL",
"Effect":"Allow",
"Principal": "*",
"Action":["s3:GetObject"],
"Resource":["arn:aws:s3:::my-bucket-name/*/*"]
}
]
}
@gnzandrs
Copy link
Author

gnzandrs commented Feb 8, 2018

Example of the bucket estructure for bundles in S3.

bucket-base
└───js
│   │   script-example.js
└───css
    │   style-example.css

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment