Skip to main content

Cloud Run: Memory Limit

cloud-run-memory-limit.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: {
// defaults to 512Mi
memory: "8Gi",
// increasing memory might also require increasing cpu limit
// see cloud run documentation for details
cpu: 2,
},
},
},
},
} satisfies Config;