Hosting a static website on AWS S3

 Hosting a static website on AWS S3


Steps:

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. 


5. Click upload and select the files you want to upload.


6. Finally click on upload
    

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



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





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


10. Edit object ownership





11. Also make your object ACL public.

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





Comments

Popular posts from this blog

Installing and attaching MYSQL database to EC2 instance