So AWS S3 Bucket is used for storing files and folder so that we can reuse it again and again and we can also use it as hosting static website by giving it public access and enabled static website hosting feature.
Let's implement the project step by step:
We need to have a AWS account you can make a free account.
After login to the AWS console search for S3 Bucket.
Then click on create bucket.
Enter a unique bucket name and then choose ACLs enabled in the Object Ownership section
Then uncheck Block all public access.
Rest of the configurations leave as default
Click create bucket
Uploading files and other settings:
Click on the bucket name and then click upload and then Add files.
You can upload any basic project which contains a HTML file.
Now go to the Bucket settings and then scroll down and you will see " Static website hosting" click on edit.
Choose enable and then choose the index document which you want in your website.
Keep rest of the things as default and then click save changes.
Now you will see a link created and use that link in your browser
After searching the link you will an error.
403 Forbidden
To remove this error go to the Objects section then check all the files and folder
Then click on Actions and scroll down then click " Make public using ACL"
Again search the link you will that our website working extremely right.
That's a wrap.......