With Google Cloud Functions python39
runtime os.environ['GCP_PROJECT']
in Google Cloud Function gives KeyError: 'GCP_PROJECT'
error. The documentation states:
Newer runtimes automatically set fewer environment variables than older ones.
My question: is there other way than:
- setting is through env var at deployment time
- using the metadata server