LambdaSharp / StaticWebsite-Sample

Static website with pre-populated assets and a configurable title and message

Home Page:https://lambdasharp.net

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

LambdaSharp - Create a Static Website with CloudFormation

This sample requires the LambdaSharp CLI to deploy.

Overview

This LambdaSharp module creates a static website hosted by an S3 bucket with a customizable title and greeting message. The assets for the website are uploaded from the wwwroot folder and copied to the S3 bucket during deployment.

Deploy

This module is compiled to CloudFormation and deployed using the LambdaSharp CLI.

git clone https://github.com/LambdaSharp/StaticWebsite-Sample.git
cd StaticWebsite-Sample
lash deploy

Details

  1. Prompt for the Title and Greeting message values of the website.
  2. Create an S3 bucket configured to host a website.
  3. Create a bucket policy to allow for public access.
  4. Create a config.json file with the title and greeting message.
  5. Copy the wwwroot files to the S3 bucket.
  6. Show the website URL.

Parameters

Greeting
The Greeting parameter sets the website's greeting message.

Required: Yes

Type: String

Title
The Title parameter sets the website's title.

Required: Yes

Type: String

Video

Watch the video

Acknowledgements

The website assets for this module were created by Cloud Academy: https://github.com/cloudacademy/static-website-example

License

Apache 2.0 for the module and code.

Creative Commons Attribution 3.0 Unported for the website files in the wwwroot folder.

About

Static website with pre-populated assets and a configurable title and message

https://lambdasharp.net

License:Other


Languages

Language:CSS 70.2%Language:JavaScript 17.3%Language:HTML 12.5%