2. Set up AWS S3 bucket (time: ~5 minutes)

a) Log into AWS console and click on S3

b) Click create bucket and enter a Bucket name(example: onederful-quickstart). Click Next through all the remaining steps and create the bucket.

In Bucket name, use a unique name for your app

c) On the list view, click on the newly created bucket

Your newly created bucket should be in the list view

d) A popup will show up, click on properties

Clicking on the properties panel will redirect you to the properties tab for the bucket

e) Click on Static website hosting and enter in index.html for both fields Index document and Error document

The endpoint is the public URL you can share with anyone. The error document being set to index.html enables the React app to define and handle all the routing rather than S3

f) Click on permissions tab and copy and paste the policy (replacing [YOUR BUCKET NAME] with your bucket name)

{

"Version": "2012-10-17",

"Statement": [

{

"Sid": "AllowPublicRead",

"Effect": "Allow",

"Principal": "*",

"Action": "s3:GetObject",

"Resource": "arn:aws:s3:::[YOUR BUCKET NAME]/*"

}

]

}