This document outlines the steps to host a static website on AWS S3, starting from downloading a template to configuring the S3 bucket for public access. It details the creation of a bucket, uploading the website files, and setting up static website hosting. Finally, it addresses potential access issues and confirms successful hosting of the website.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
34 views1 page
Hosting A Static Website On AWS S3
This document outlines the steps to host a static website on AWS S3, starting from downloading a template to configuring the S3 bucket for public access. It details the creation of a bucket, uploading the website files, and setting up static website hosting. Finally, it addresses potential access issues and confirms successful hosting of the website.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1
Hosting a static Website on AWS S3
Steps
1. Go to the URL https://www.free-css.com/free-css-templates
2. Download any simple website from the available list of websites 3. Make the Zip Folder of the downloaded website 4. Login to the AWS account 5. In the services menu search S3 and select it 6. On AWS S3 console create a bucket by choosing “Create Bucket” option 7. Give some name (suppose: staticweb-bucket) to the bucket and choose your region. 8. Uncheck the “Block all public access” option in the bucket settings for block public access and select “Create Bucket” 9. The bucket created will appear in the main menu of S3 interface 10. Click on the Bucket Name (staticweb-bucket) to move inside the bucket 11. Choose the “Actions” option and select “Make Public” from the drop-down menu. 12. Choose the “upload” option to upload the zip folder of the website created in step 3 above by clicking on the “Upload” button. 13. To upload the zip folder - there are two options a. Add files b. Drag and drop and folders here - Choose this option to upload the zip folder 14. After choosing “Drag and drop and folders here” option choose Next 15. Again, click Next and choose the “Standard” option and select Next and finally choose Upload. (Note: It will take some time depending upon the internet speed) 16. You will be able to see the uploaded folder inside the S3 bucket now 17. Click on the uploaded folder - click on “index.html”. You should be able to see an Object URL at the bottom of the page. This object URL acts as the end point. If you click on object URL, it may show you the result as “Access Denied” 18. Go back to the staticweb-bucket and choose “Properties”. You will get several options there, and among those choose “Static website hosting”. Inside “Static website hosting” choose option 1 - “Use this bucket to host a website”. Once you click on “Use this bucket to host a website” it will ask for an index document. Type “index.html” in the required option. Keep all the options as they are in the default. Click on “Save”. Check the static website hosting tab, you will see the message “Bucket Hosting” checked. 19. Go back to the staticweb-bucket and click on the “Overview” tab. Try accessing the bucket again. Open the zip folder contents of the website in the bucket and click on “index.html”. The webpage will be opened in your default web browser. 20. In the case you still get the message as “Access Denied”, click on the “Permissions” tab and edit block public access and make the bucket as public by typing “confirm” in the field that will open. 21. This way you have successfully hosted a static website on a S3 bucket in AWS.