Lab 6 – S3 Static Website Hosting

1. Chuẩn bị 1 bộ source HTML tĩnh (có thể là static files build ra từ
Angular/NodeJS...).
2. Upload source lên s3 (lưu ý file index.html phải ở level gốc)
3. Bật s3 static web hosting
4. Cấu hình open public access cho bucket
5. Cấu hình bucket policy cho phép mọi người access.
6. Test truy cập từ trình duyệt.

1. Chuẩn bị 1 bộ source HTML tĩnh (có thể là static files build ra từ Angular/NodeJS...).

Dùng source code bài của tôi: https://github.com/nvminh162/fe-mensfashion

image.png

2. Upload source lên s3 (lưu ý file index.html phải ở level gốc)

check

image.png

image.png

3. Bật s3 static web hosting

image.png

image.png

image.png

image.png

image.png

image.png

4. Cấu hình open public access cho bucket

image.png

image.png

5. Cấu hình bucket policy cho phép mọi người access.