How to host static website in AWS S3

How to host static website in AWS S3

First, go S3 bucket

Then create a new bucket

  1. Give bucket to a name.

  2. Make sure the default setting.

  3. Then create the bucket.

Upload the code file from upload button

Then upload all files

Then upload become successfull

Now we need to enable the static website hosting

For this, click on properties and scroll to the bottom.

Save these changes

Now we need to make this bucket publically accessible

Click on permission, uncheck the "block all permossion"

now go to permission

click on object ownership edit and enable ACLI, save the changes

Now select all files and make public using ACL

Now click on index.html and copy the URL

Check the URL is working fine.

Conclusion

Finally we learn all how to host static website in AWS s3 bucket.

For more information you can reach through linkedin :- https://www.linkedin.com/in/sidharth-shukla/