This sample requires the LambdaSharp CLI to deploy.
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.
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
- Prompt for the
Title
andGreeting
message values of the website. - Create an S3 bucket configured to host a website.
- Create a bucket policy to allow for public access.
- Create a
config.json
file with the title and greeting message. - Copy the
wwwroot
files to the S3 bucket. - Show the website URL.
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
The website assets for this module were created by Cloud Academy: https://github.com/cloudacademy/static-website-example
Apache 2.0 for the module and code.
Creative Commons Attribution 3.0 Unported for the website files in the wwwroot
folder.