Skip to content

Support GCP Cloud Function connect to VPC network #190

Closed
@bao1018

Description

@bao1018

Move from serverless/serverless#7028

Description

We would like to allow GCP cloud function to connect to a service in a VPC network, the native cloud beta functions deploy command to support this feature via adding --vpc-connector argument.

but unfortunately can not figure out how to use the serverless framework to deploy the cloud function as vpc connection supported.

We need to add below argument for GCP CF as

vpc
pass the name of the vpc connection, the format will be projects/PROJECT_ID/locations/REGION/connectors/CONNECTOR_NAME

Reference Link:
https://cloud.google.com/functions/docs/connecting-vpc

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions