How to host a static website on AWS using S3 bucket

+6 votes
I am trying to host a static website using S3 on AWS. How to do that?
Dec 11, 2018 in AWS by Nitesh
• 3,080 points
2,737 views

3 answers to this question.

+5 votes
Best answer

Hosting a website using S3 bucket is very easy all you need to have are the following things

AWS account. 

S3 Bucket with static website hosting enabled.

Your website html file.

I will guide you step by step.

1. Create a S3 bucket  and go to properties tab.

2. Enable Static website Hosting.

3. Create a webpage or get your static website's content ready.

4. Upload the file to S3 bucket.

5. Make your webpage public as it is currently hidden and is private.

6. Click on properties of your file and check for the generated link.

7. Copy the link and open it using your browser.

And its done. I hope it was useful.

answered Dec 11, 2018 by Priyaj
• 58,020 points

selected Dec 11, 2018 by Omkar
Thanku so much...it worked for me !
Hey! I hope you are doing good.

Please register at Edureka Community and upvote the answer if it has helped you. You get credits for every contribution(answering, commenting, asking a question, upvoting/downvoting an answer or question) once you register you can use these credits to become an admin on this community or get discounts of Edureka products.
+3 votes
answered Dec 11, 2018 by Jino
• 5,820 points
+2 votes
answered Dec 11, 2018 by Shuvodip

Related Questions In AWS

+3 votes
4 answers

How to host a website on AWS?

Certainly, it can be used to do ...READ MORE

answered Mar 30, 2018 in AWS by brat_1
• 7,200 points
2,934 views
0 votes
1 answer

How to download the latest file in a S3 bucket using AWS CLI?

You can use the below command $ aws ...READ MORE

answered Sep 6, 2018 in AWS by Archana
• 4,170 points
19,855 views
+1 vote
1 answer

How to host a dynamic website on aws?

For hosting a dynamic website on AWS, ...READ MORE

answered Jan 27, 2020 in AWS by Oliver
19,983 views
0 votes
0 answers

How to host a website on AWS?

Dec 10, 2021 in AWS by Edureka
• 220 points
434 views
0 votes
1 answer

AWS S3 uploading hidden files by default

versioning is enabled in your bucket. docs.aws.amazon.com/AmazonS3/latest/user-guide/….... the ...READ MORE

answered Oct 4, 2018 in AWS by Priyaj
• 58,020 points
5,958 views
–1 vote
1 answer

How to decrypt the encrypted S3 file using aws-encryption-cli --decrypt

Use command : aws s3 presign s3://mybucket/abc_count.png you get ...READ MORE

answered Oct 22, 2018 in AWS by Priyaj
• 58,020 points
5,204 views
0 votes
1 answer

Import my AWS credentials using python script

Using AWS Cli  Configure your IAM user then ...READ MORE

answered Nov 16, 2018 in AWS by Jino
• 5,820 points
2,868 views
0 votes
2 answers
0 votes
1 answer

How to create a S3 bucket using AWS CLI?

You can use the following command:- C:\Users\priyj_kumar>aws s3api ...READ MORE

answered Feb 15, 2019 in AWS by Priyaj
• 58,020 points
6,128 views
+1 vote
3 answers

How to get ARN for s3 Bucket using aws cli .

An ARN is a non-opaque, constructible identifier, ...READ MORE

answered Aug 16, 2018 in AWS by Priyaj
• 58,020 points
5,646 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP