@serverless/cdn
v1.2.0
Published
Downloads
11
Readme
Serverless CDN
Deploy a zero-config serverless CDN to AWS using Serverless Components. Ships with custom domain support.
1. Install
$ npm install -g serverless
2. Create
$ mkdir cdn
$ cd cdn
the directory should look something like this:
|- serverless.yml
|- .env # your AWS api keys
# .env
AWS_ACCESS_KEY_ID=XXX
AWS_SECRET_ACCESS_KEY=XXX
3. Configure
# serverless.yml
CDN:
component: '@serverless/cdn'
inputs:
region: us-east-1
domain: cdn.eahefnawy.com # optional
bucketName: myCdnBucket # optional. If not provided, it will create random bucket name
4. Deploy
$ serverless
New to Components?
Checkout the Serverless Components repo for more information.