Skip to content

How to configure Direct VPC egress in Firebase Functions HttpsOptions ? #1729

@natsumesou

Description

@natsumesou

Related issues

I could not find any related issues about this topic in the firebase-functions repository.

[REQUIRED] Version info

node:
20.15.0

firebase-functions:
5.0.1

firebase-tools:
13.14.2

firebase-admin:
12.4.0

[REQUIRED] Test case

When configuring Cloud Functions with the Firebase JS SDK, I can specify a VPC connector in HttpsOptions using vpcConnector.
However, I cannot find any option for configuring Direct VPC egress (i.e. direct VPC access without a connector).

Example:

export const myFunction = onRequest(
  {
    vpcConnector: "my-connector-name",
  },
  (req, res) => {
    res.send("hello");
  }
);

Above works for VPC connector, but there seems to be no equivalent setting for Direct VPC.

[REQUIRED] Steps to reproduce

  1. Try to deploy a function with HttpsOptions using Direct VPC egress.
  2. Notice there is no documented field for Direct VPC in the SDK.

[REQUIRED] Expected behavior

I would expect there to be an option in HttpsOptions (or somewhere else in the API) to configure Direct VPC egress, similar to how vpcConnector can be set.

[REQUIRED] Actual behavior

There is no documented or apparent way to configure Direct VPC via the Firebase JS SDK.
I’m not sure if this is currently unsupported, or if it can be configured through an existing option.

Were you able to successfully deploy your functions?

The issue is only about how to configure Direct VPC.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions