Skip to content

Is it possible to config which service account a cloud function uses? #6067

Closed Answered by taeold
thecannabisapp asked this question in Q&A
Discussion options

You must be logged in to vote

Yes it's possible! Here's an example:

const {onRequest} = require("firebase-functions/v2/https");

exports.hello = onRequest(
  {
    serviceAccount: "your-service-account@"
  },
  (req, res) => {
    res.sendStatus(200);
  });

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@thecannabisapp
Comment options

Answer selected by thecannabisapp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants