Create a static website and host it on s3 bucket but with public read policy assigned, using cloudfront for CDN.
2. Search for s3 and choose "Create bucket" to create s3 bucket.
3. Give bucket a unique name, leave every other settings as default and upload.
4. Upload objects (static website files) to the bucket created above
6. Then create a distribution
7. Setup the distribution as follows:
Set the origin domain to the s3 bucket to be deployed
The Origin access is set to Public by default but we'll be changing it to Origin access control settings (recommended)
Then select the s3 bucket we intend to deloy
Enable security protections
Set default root object to the landing page and create distribution
8. Copy the policy by clicking the "Copy policy" button
9. Go to the permission of the s3 bucket
10. Edit the bucket policy
11. Paste the policy and click on "save changes"
12. Go back to the cloudfront distribution and copy the domain name generated.
Static website hosted succesffully