Skip to content
This repository has been archived by the owner on Oct 3, 2023. It is now read-only.

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

License

Notifications You must be signed in to change notification settings

LambdaSharp/StaticWebsite-Sample

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published