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:

Fatima Khan said...

PkDomain offers Web Hosting in Pakistan. One of Top Web Hosting Services Provider in Pakistan. We provide Web Hosting for small businesses and individuals. Whether you need Web hosting in Pakistan or a complete solution with development, we have it! For more detailed information you can visit us at PK Domain. .pk domain discount coupon