Is it possible to config which service account a cloud function uses? #6067
-
I have an express app which I've deployed as a gen2 function; by default, this function runs under the default compute service account. I want to limit the permissions on this function by creating a custom IAM service account and configuring the cloud-run container to use this account instead. I know this is possible via the gcloud cli, but I'd have to update my functions, and I'd rather keep it all managed via the firebase cli. I was wondering if this is possible. Thanks :) |
Beta Was this translation helpful? Give feedback.
Answered by
taeold
Jul 12, 2023
Replies: 1 comment 1 reply
-
Yes it's possible! Here's an example:
|
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
thecannabisapp
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Yes it's possible! Here's an example: