What's AWS S3
database for unstructured data, we can put a static website (doesn't need that much back-end) on S3
Why use S3
- high scalability
- horizontal scaling: storage doesn't fulfill the need, then just use more devices
- vertical scaling: storage doesn't fulfill the need, then we change to better advanced storage devices
- high availability
- cS3 store data across multiple server and data center; one server on fire, it's fine, there's another server
How to host a static website on S3?
- amazon IAM log in
- Search S3
- Create a bucket
- bucket name has to be unique
- AWS region: choose one closer to you or users
- ACLs enabled: let file publicly accessible
- Unblock Public Access
- Click on bucket, upload the HTML and JPEG files (for the static website)
- Select and Make Public Using ACL
- Enable static website hosting
- Index_document select the HTML file
- Voila, you got a static website
Cr: Fried Egg Tech
https://www.youtube.com/watch?v=S1wcj1oIfHg