How to host a React Application on AWS S3

Опубликовано: 02 Октябрь 2024
на канале: Andre de Vries
24,763
308

Learn how to deploy and host a React Application on AWS S3. There are many ways to host a static website in the public cloud on AWS and in this video we take a look at how to use an S3 bucket for this. You'll learn how to change the bucket permission and how to manually upload the application. After that we look at how you can automate this process by using the AWS CLI to sync the folders.

Resources:
- How to deploy React to AWS Amplify:    • How to deploy a React Application on ...  

S3 Policy (replace name of bucket with your bucket name):

{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "AllowPublicReadAccess",
"Effect": "Allow",
"Principal": "*",
"Action": "s3:GetObject",
"Resource": "arn:aws:s3:::NameOFBucket/*"
}
]
}

-----
Website: https://andredevries.dev/
Twitter:   / andre347_  
Github: https://github.com/andre347