Google secret Key as environment variable

has anyone on here worked with GCP Secret manager and serverless functions together?

I’m working on a service that requires authentication using a service account, so I have created a service account with its own key. In order to avoid any security risk, I have stored that key in Google’s secret manager and then called from my code.

Right now I can access the key from my code, but I’m dealing with the problem of how to use it as an environment variable (GOOGLE_APPLICATION_CREDENTIALS).

Does anyone here have a similar experience? How do you deal with that?

How many English words
do you know?
Test your English vocabulary size, and measure
how many words do you know
Online Test
Powered by Examplum