Skip to content

Automatically set the enviroment variables of a cloud run service from a local .env file

License

Notifications You must be signed in to change notification settings

daanhegger/cloud-run-env-setter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cloud Run Environment Variables Setter

Automatically set the enviroment variables of a cloud run instance from a local .env file

Why

Google Cloud Run allows for easy and fast deployment of (micro)services, but adding their environment variables can take a while. Especially if your services requires many settings. And even more tedious if you have separate services for development/staging/production environments.

This tool helps by allowing you to set the service's environment variables based on a local environment file.

Cloud Run Environment Variables Window

👆 No fun adding all these rows...

Usage

  1. Clone repository
  2. yarn install to install dependencies
  3. yarn run start [options] to run the program
Usage: index [options]

Automatically set the enviroment variables of a cloud run service from a local .env file

Options:
  -V, --version              output the version number
  -s, --service <service>    cloud run service where you want to update env variables
  -e, --env-file <env-file>  path to the file containing environment variables
  -r, --region <region>      region where the service is hosted (default: "europe-west4")
  -h, --help                 display help for command

About

Automatically set the enviroment variables of a cloud run service from a local .env file

Topics

Resources

License

Stars

Watchers

Forks