env.yaml auto generate CLI tool for Google AppEngine.
When deploying applications to Google AppEngine, we bother us with managing environment variables.
This package automatically generates a dedicated YAML file that enumerates environment variables (with the prefix and regex filter you specified) and makes managing environment variables the easiest.
At first, Please add include
to your app.yaml.
# app.yaml
includes:
- env.yaml
$ yarn add @elevenback/env-yaml-generator -D
$ export DEV_API_ROOT="https://dev.example.com"
$ export PROD_API_ROOT="https://prod.example.com"
$ yarn create-env-yaml --environment DEV --filter "API_.+"
$ cat ./env.yaml
env_variables:
API_ROOT: "https://dev.example.com"
- type: string
- required: false
- default: null
If you given environment option to CLI, The CLI extracts only starts with ${environment}_
environment variables.
- type: Regexp
- required: false
- default: null
If you given filter option to CLI, The CLI extracts only environment variables matches regexp.
MIT