How to host a static website on AWS using S3 bucket?

+5 votes
I am trying to host a static website using S3 on AWS. How to do that?
Dec 11, 2018 in AWS by Nitesh
• 2,920 points
177 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
• 56,900 points

selected Dec 11, 2018 by Omkar
+2 votes
answered Dec 11, 2018 by Jino
• 5,560 points
+1 vote
answered Dec 11, 2018 by Shuvodip

Related Questions In AWS

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,090 points
4,431 views
0 votes
1 answer
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
• 56,900 points
263 views
0 votes
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
• 56,900 points
573 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,560 points
378 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 in AWS by Priyaj
• 56,900 points
622 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
• 56,900 points
1,440 views