Monday, March 26, 2018

How to setup Serverless server on AWS (Static Web Hosting)?

Prerequisite

- Register an AWS account

Note: AWS has given a very details step by step guide. This is for my own note taking and reference

Installation steps (Host a static website)
  • Login to AWS website, select your region.

  • Click on "S3" on the "Storage" section, "Create bucket" page is launched.

  • Click on "Create Bucket" button, fill in the form with the details and click on "Create" button
  • A S3 bucket will be created. Please refer to the screenshot below
  • A S3 bucket will be created. Please refer to the screenshot below:-
    https://github.com/awslabs/aws-serverless-workshops/archive/master.zip 

  • Select the newly created S3 bucket,  launch the AWS management console.


  • Click on "Upload" button and copy all the files from "WebApplication\1_StaticWebHosting\website" folder into the "Upload" window..


  • Click on "Permission" tab, follow by "Bucket Policy" button, enter the "Bucket policy" and click "Save" button 
  • Click on "Properties" tab, follow by select "Static website hosting" and "Use this bucket to host a website" option. Enter index.html in the "Index Document" field. Click on "Save" button

  • Browse to the url "http://beez-firstname-lastname.s3-website-ap-southeast-1.amazonaws.com/", the template page is displayed.


1 comment:

Unknown said...

Thanks for this great share. This post is much useful for us. This is very helpful for who wants to learn professional Education. I am really enjoying reading your well written articles. It looks like you spend a lot of effort and time on your blog.
Why AWS Has gained Popularity