Skip to content

serverless IO project to serve an html from an S3 bucket with dynamically injected content

Notifications You must be signed in to change notification settings

manjumuthaiya/helloworld-serverless

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

helloworld-serverless

Serverless IO project to serve an html from an S3 bucket with dynamically injected content https://serverless.com

How to set up:

  1. Setup an S3 bucket with the following folder structure
  • STAGE1
    • breadcrumb.txt - live SHA
    • SHA1
      • prefix-index.html (contains and element BEGIN)
      • postfix-index.html (END element and include ) ( and <script> tags should be of the format http://s3.amazonaws.com/<bucketname>/<%REPLACE_WITH_STAGE%>/<%REPLACE_WITH_SHA%>/filename.js)
      • assets
    • SHA2
      • prefix-index.html (contains and element BEGIN)
      • postfix-index.html (END element and include ) ( and <script> tags should be of the format http://s3.amazonaws.com/<bucketname>/<%REPLACE_WITH_STAGE%>/<%REPLACE_WITH_SHA%>/filename.js)
      • assets ...
  • STAGE2 ...
  1. Change the bucket name in serverless.yml to your S3 bucket name
  2. Set up serverless to work with your AWS credentials (see documentation)

About

serverless IO project to serve an html from an S3 bucket with dynamically injected content

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published