Skip to content

Script for updating environmental variables of cloud run service using yaml file

Notifications You must be signed in to change notification settings

altuntasmuhammet/cloud-run-update-env-from-file

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

cloud-run-update-env-from-file

Script for updating environmental variables of cloud run service using yaml file

First, install gcloud-sdk https://cloud.google.com/sdk/docs/install

Initialize SDK https://cloud.google.com/sdk/docs/initializing

Authorize SDK https://cloud.google.com/sdk/docs/authorizing

Download service yaml configuration

gcloud run services describe <SERVICE_NAME> --format export > service.yml

Add environmental variables to the service

python add_env_to_service_file.py --env-file=.env.yaml --service-file=service.yaml --out=new_service.yml

Replace service with created one

gcloud beta run services replace new_service.yml

About

Script for updating environmental variables of cloud run service using yaml file

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages