Cloud Run: Service with custom vpc settings
cloud-run-service-custom-vpc-connector.ts
const config = {
appName: "test-app",
customerName: "pan",
components: {
api: {
dir: "api",
build: {
type: "node",
},
deploy: {
type: "google-cloudrun",
projectId: "google-project-id",
region: "europe-west6",
service: {
vpcConnector: "my-first-vpc-connector",
vpcEgress: "all-traffic",
},
jobs: {
myjob: {
command: "echo hello",
vpcConnector: "my-first-vpc-connector",
vpcEgress: "all-traffic",
},
},
},
},
},
} satisfies Config;