Skip to content
This repository was archived by the owner on Jun 9, 2025. It is now read-only.

Latest commit

 

History

15 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

What's this?

getenv will fetch Google Cloud (Compute Engine) metadata attributes and print them as K=V pairs ready to be exported as environment variables.

Example:

getenv
MY_VARIABLE=SOMEVALUE

How to use

Export all metadata attributes as ENV variables for current shell session and store them in /etc/environment for future sessions:

export $(getenv)
getenv 1>> /etc/environment

or

getenv 1>> /etc/environment
source /etc/environment

About

Export Google Cloud (Compute Engine) metadata as environment variables.

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages