Skip to content

Instantly share code, notes, and snippets.

@colossus21
Forked from AlexzanderFlores/Scripts for video
Created October 9, 2020 10:28
Show Gist options
  • Save colossus21/fcac38c7f8a68314192f718308cfdce4 to your computer and use it in GitHub Desktop.
Save colossus21/fcac38c7f8a68314192f718308cfdce4 to your computer and use it in GitHub Desktop.
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "PublicReadGetObject",
"Effect": "Allow",
"Principal": "*",
"Action": "s3:GetObject",
"Resource": "arn:aws:s3:::YOUR_S3_BUCKET_HERE/*"
}
]
}
<?xml version="1.0" encoding="UTF-8"?>
<CORSConfiguration xmlns="http://s3.amazonaws.com/doc/2006-03-01/">
<CORSRule>
<AllowedOrigin>*</AllowedOrigin>
<AllowedMethod>GET</AllowedMethod>
</CORSRule>
</CORSConfiguration>
version: 0.2
phases:
pre_build:
commands:
- npm install
build:
commands:
- npm run build
artifacts:
files:
- '**/*'
discard-paths: no
base-directory: build
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment