see more blog

Create a simple website for Christmas on Amazon S3 bucket

s3 hosting - featured image

With another Christmas season coming, VTI Cloud wishes everyone a merry and happy Christmas. To make the Christmas atmosphere more bustling, VTI Cloud would like to send everyone a way to create a simple website on Amazon S3 to send greetings to relatives and loved ones.

Dependencies: 

  • Have an account that accesses the AWS console and has permission to create an S3 bucket.

  • Own or Create the source code for your website. This article’s topic is: “Merry Christmas”.

Create S3 bucket on Amazon S3

Step 1: Access AWS Management Console → go to Amazon S3 → select Create bucket → type new Bucket Name, uncheck Block all public access → select Create bucket.

Step 2: In the created bucket, go to bucket → select tab Properties.

Step 3: Scroll down to Static website hosting → select Edit → select Enable → select Host a static website → in Index document, type index.html → In Error document, type error.html or whatever name (this entry we don’t use so we just enter it to be valid) → finally, select Save changes.

static web host with s3

Public static website

Step 1: After saving, we will see the access link to our website, remember to copy this link for later access.

Step 2: Roll back to Objects and select Upload to upload all files of your static website.

Step 3: Next we select all the files → select Actions → select Actions → select Make public.

Enjoy the results! Easy to create a simple website within minutes.

And now it’s time to enjoy the results, you can use the link above to access your website, which is the link of this article. Here are some projects for you to refer to:

http://vticloud-xmas-tree.s3-website-ap-southeast-1.amazonaws.com/

Be sure to scroll all the way down to see your best wishes, Merry Christmas!

s3 static website

http://vticloud-xmas-tree1.s3-website-ap-southeast-1.amazonaws.com/

References of source code for creating a simple website

The source we got from https://codepen.io/ashleynolan/pen/WbxNap

In addition to the feature to create a simple website, we can also use Amazon S3 as a place to store data that is automatically synchronized from Windows Server servers. To learn more about this feature in the article: Set up periodically back up files from Windows folder to Amazon S3 | VTI CLOUD

About VTI Cloud

VTI Cloud is an Advanced Consulting Partner of AWS Vietnam with a team of over 50+ AWS certified solution engineers. With the desire to support customers in the journey of digital transformation and migration to the AWS cloud, VTI Cloud is proud to be a pioneer in consulting solutions, developing software, and deploying AWS infrastructure to customers in Vietnam and Japan.

Building safe, high-performance, flexible, and cost-effective architectures for customers is VTI Cloud’s leading mission in enterprise technology mission.

Related news

what’s up at VTI