- Step 1: Upload your content to a static website enabled Amazon S3 bucket and grant object permissions.
- Step 2: Create a CloudFront distribution.
- Step 3: Access your content through CloudFront.
We can use Amazon S3 to host a static website.
- On a static website, individual webpages include static content.
- They might also contain client-side scripts.
By contrast, a dynamic website relies on server-side processing, including server-side scripts, such as PHP, JSP, or ASP.NET.
- Amazon S3 does not support server-side scripting, but AWS has other resources for hosting dynamic websites.