diff --git a/src/deploy/functions/build.ts b/src/deploy/functions/build.ts index 573a199ab4e..47dd2c07a6b 100644 --- a/src/deploy/functions/build.ts +++ b/src/deploy/functions/build.ts @@ -494,10 +494,12 @@ export function toBackend( nullsafeVisitor((cpu) => (cpu === "gcf_gen1" ? cpu : r.resolveInt(cpu))) ); if (bdEndpoint.vpc) { + bdEndpoint.vpc.connector = params.resolveString(bdEndpoint.vpc.connector, paramValues); if (bdEndpoint.vpc.connector && !bdEndpoint.vpc.connector.includes("/")) { bdEndpoint.vpc.connector = `projects/${bdEndpoint.project}/locations/${region}/connectors/${bdEndpoint.vpc.connector}`; } - bkEndpoint.vpc = { connector: params.resolveString(bdEndpoint.vpc.connector, paramValues) }; + + bkEndpoint.vpc = { connector: bdEndpoint.vpc.connector }; proto.copyIfPresent(bkEndpoint.vpc, bdEndpoint.vpc, "egressSettings"); } else if (bdEndpoint.vpc === null) { bkEndpoint.vpc = null;