em-cloudflare-dns
Easily provision cloudflare DNS Serverless Components.
- Install
- Create
- Configure
- Deploy
1. Install
$ npm install -g @serverless/cloudflare-kv
2. Create
$ mkdir demo de && cd demo
Just create a serverless.yml
file
$ touch serverless.yml
$ touch .env
# .env
CF_ACCOUNT_ID=
CF_EMAIL=
CF_KEY=
CF_ZONE_ID=
3. Configure
Create a serverless.yml
file:
name: demo
stage: dev
plugins:
- serverless-dotenv-plugin
demo:
component: '@verymundo/em-cloudflare-dns'
inputs:
zone: everymundo.net
name: test2.vg
type: CNAME
content: everymundo.net
Use the environment variables CF_ACCOUNT_ID
, CF_EMAIL
, CF_KEY
and CF_ZONE_ID
to specify your Cloudflare API credentials.
4. Deploy
$ severless
New to Components?
Checkout the Serverless Components repo for more information.