To create a static website using Amazon S3, follow these steps:
Sign in to the AWS Management Console and navigate to the S3 service.
Create a new bucket by clicking on the "Create bucket" button. Enter a unique bucket name and select a region.
Select the newly created bucket and go to the "Properties" tab. Navigate to the "Static website hosting" section and click on the "Edit" button.
Choose the option to enable static website hosting and enter the index document (e.g., index.html) and error document if needed.
Upload your website files to the bucket by clicking on the "Upload" button. You can drag and drop files or use the "Add files" button to upload multiple files at once.
Make sure that your index.html file is set as the default index document.
Once all the files are uploaded, click on the bucket name or the endpoint URL provided in the "Static website hosting" section to view your static website.
You can also configure a custom domain for your static website by setting up a CNAME record that points to the bucket's endpoint URL.
That's it! You have successfully created a static website using Amazon S3.