Skip to content

Instantly share code, notes, and snippets.

@osagiestar
Forked from AlexzanderFlores/Scripts for video
Created August 3, 2021 13:11
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 osagiestar/3d3f7c88dea312a7ed3737c240dbc7bd to your computer and use it in GitHub Desktop.
Save osagiestar/3d3f7c88dea312a7ed3737c240dbc7bd to your computer and use it in GitHub Desktop.
//https://youtu.be/Mgs7jl430vs
{
"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