Skip to content

deploys with 15.17.0 fail without explicit setGlobalOptions({ region: 'us-central1' }) with vpcConnector #10467

@samsargent

Description

@samsargent

Looks like our CI is using the latest 15.17.0 somehow and deploys are failing today when they worked fine on the previous release.

It works if including setGlobalOptions({ region: 'us-central1' }) in the index.ts file but this seems like a regression?

[REQUIRED] Environment info

firebase-tools: 15.17.0

Platform: Ubuntu (github CI)

[REQUIRED] Test case

Deploy a function like this:

export const jobCreated = onDocumentCreated(
  {
    document: `jobs/{jobId}`,
    vpcConnector: 'connector-name',
    vpcConnectorEgressSettings: 'PRIVATE_RANGES_ONLY',
  },
  onCreateJob
)

[REQUIRED] Steps to reproduce

Try deploying a function defined like that without setGlobalOptions({ region: 'us-central1' })

These are existing functions already in us-central1 - the same region as the VPC connector.

[REQUIRED] Expected behavior

Function deploys as expected.

[REQUIRED] Actual behavior

Errors with: functions: Request to https://cloudfunctions.googleapis.com/v2/projects/%%service-url%% had HTTP Error: 400, Could not update Cloud Run service servicename. spec.template.metadata.annotations: The target region us-central1 for the deployment must be the same as the reg

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions