em-cloudflare-route
Easily provision cloudflare route Serverless Components.
- Install
- Create
- Configure
- Deploy
1. Install
$ npm i @everymundo/em-cloudflare-route@0.0.0
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: '../'
inputs:
routeName: al-dev.com
workerName: geoip
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.