https://github.com/ykarakita/cfn_cloudfront_example
https://github.com/ykarakita/cfn_cloudfront_example
aws cloudformation serverless serverless-framework
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/ykarakita/cfn_cloudfront_example
- Owner: ykarakita
- Created: 2017-11-19T01:38:52.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2022-12-07T23:46:03.000Z (over 3 years ago)
- Last Synced: 2025-01-16T04:33:40.341Z (about 1 year ago)
- Topics: aws, cloudformation, serverless, serverless-framework
- Language: Python
- Size: 3.91 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
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.
```buildoutcfg
http://xxxxxxxxxx.cloudfront.net/objectname
```
### References
- https://github.com/y13i/cfn-staticweb-example