Skip to main content

gcp_project.py

Source: sunholo/utils/gcp_project.py

Functions

get_gcp_project(include_config=False)

Retrieve the GCP project ID from environment variables or the GCP metadata server.

Returns: str or None: The project ID if found, None otherwise.

get_env_project_id()

Attempts to retrieve the project ID from environment variables.

Returns: str or None: The project ID if found in environment variables, None otherwise.

Sunholo Multivac

Get in touch to see if we can help with your GenAI project.

Contact us

Other Links

Sunholo Multivac - GenAIOps

Copyright ©

Holosun ApS 2024