Hosting a static website on AWS S3

1. Search for S3 service in AWS Console.




2. Create a new bucket.




3. Give Proper name and region to host your website in. Then Create the bucket



4. Now we have to upload our website files to this S3 bucket. But before that keep your website files ready. Click upload and select the files you want to upload. Finally click on upload.


5. Once the files are uploaded, go back to bucket properties and find the static hosting option.




6. Enable the static hosting and give names of your index and error document files. Then click on save changes.





7. Now go back to your Bucket permissions, then edit the block public access settings. Uncheck "Block all public access"


10. Edit object ownership




11. Now copy the public url for object and paste in web browser. The pages will be accessible.









Comments