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
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:
[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