Content-Length: 270804 | pFad | http://github.com/k1LoW/serverless-static-hosting-with-basic-auth/blob/master/README.md

8B serverless-static-hosting-with-basic-auth/README.md at master · k1LoW/serverless-static-hosting-with-basic-auth · GitHub
Skip to content

Latest commit

 

History

History
43 lines (28 loc) · 1.14 KB

File metadata and controls

43 lines (28 loc) · 1.14 KB

Serverless boilerplate for Static website hosting with Basic authentication Build Status

Architecture

[CloudFront (with Lambda@Edge)] -Restrict Bucket Access-> [S3 Origin Bucket] <-Sync- [Local src/*]

Using plugin

Usage

Install boilerplate

$ git clone https://github.com/k1LoW/serverless-static-hosting-with-basic-auth.git ./my-static-page

Set Basic authentication USERNAME:PASS

Set Basic authentication config ( handler.js )

Deploy stack

$ npm install
$ AWS_PROFILE=XxxxxXXX WEBSITE_S3_BUCKET_NAME=sls-static-basic npm run deploy

Synchronize src/* -> Website

$ AWS_PROFILE=XxxxxXXX WEBSITE_S3_BUCKET_NAME=sls-static-basic npm run sync

Remove stack

$ AWS_PROFILE=XxxxxXXX WEBSITE_S3_BUCKET_NAME=sls-static-basic npm run remove








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/k1LoW/serverless-static-hosting-with-basic-auth/blob/master/README.md

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy