Skip to content

Latest commit

 

History

History
29 lines (19 loc) · 580 Bytes

README.md

File metadata and controls

29 lines (19 loc) · 580 Bytes

Sample serverless framework template to create CloudFront resource that host static web site.

Install

$ npm install -g serverless

$ git clone https://github.com/yKarakita/cfn_cloudfront_example.git

$ cd cfn_cloudfront_example 

$ pip install -r requirements.txt -t vendored

Edit serverless.env.yml

Deploy

$ serverless deploy

Put object to created S3 bucket after deploy, and access CloudFront domain name from your browser.

http://xxxxxxxxxx.cloudfront.net/objectname

References