From 792fa07a9891b2e4eabfc6c474a0208ab8620d7e Mon Sep 17 00:00:00 2001 From: Sean Pertet Date: Mon, 12 Oct 2026 16:56:08 +0300 Subject: [PATCH 1/5] Add option to increase cpu --- stacks/gcp/GcpStack.ts | 1 + types/runtime.ts | 1 + 2 files changed, 2 insertions(+) diff --git a/stacks/gcp/GcpStack.ts b/stacks/gcp/GcpStack.ts index dcb9381..9c2e34e 100644 --- a/stacks/gcp/GcpStack.ts +++ b/stacks/gcp/GcpStack.ts @@ -164,6 +164,7 @@ export default class GcpStack extends TerraformStack { }, serviceConfig: { availableMemory: func.memory?.toString().concat("M") ?? "256M", + availableCpu: func.cpu ?? "1", timeoutSeconds: func.timeout ?? 60, maxInstanceCount: func.maxInstances, minInstanceCount: func.minInstances, diff --git a/types/runtime.ts b/types/runtime.ts index 83d00e7..0ce214a 100644 --- a/types/runtime.ts +++ b/types/runtime.ts @@ -10,6 +10,7 @@ export type FunctionConfig = { timeout?: number; runtime: string; memory?: number; + cpu?: string; retryOnFailure?: boolean; staticIp?: boolean; vpc?: { From 71e20bb6595f86680295a5ac5af6a09b699516f1 Mon Sep 17 00:00:00 2001 From: Sean Pertet Date: Mon, 12 Oct 2026 17:32:39 +0300 Subject: [PATCH 2/5] remove default --- stacks/gcp/GcpStack.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stacks/gcp/GcpStack.ts b/stacks/gcp/GcpStack.ts index 9c2e34e..d70f3b4 100644 --- a/stacks/gcp/GcpStack.ts +++ b/stacks/gcp/GcpStack.ts @@ -164,7 +164,7 @@ export default class GcpStack extends TerraformStack { }, serviceConfig: { availableMemory: func.memory?.toString().concat("M") ?? "256M", - availableCpu: func.cpu ?? "1", + availableCpu: func.cpu, timeoutSeconds: func.timeout ?? 60, maxInstanceCount: func.maxInstances, minInstanceCount: func.minInstances, From 3e5b916a317c37bef85eb1214083aefe7637a73f Mon Sep 17 00:00:00 2001 From: Sean Pertet Date: Mon, 12 Oct 2026 18:04:54 +0300 Subject: [PATCH 3/5] 5.4.0 --- package-lock.json | 4 ++-- package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index 77b63bf..0bd923d 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@space48/cloud-seed", - "version": "5.3.0", + "version": "5.4.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@space48/cloud-seed", - "version": "5.3.0", + "version": "5.4.0", "license": "MIT", "dependencies": { "arg": "^5.0.2", diff --git a/package.json b/package.json index c357d35..46602c8 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@space48/cloud-seed", - "version": "5.3.0", + "version": "5.4.0", "description": "Cloud infrastructure automation tool that uses Terraform CDK.", "main": "dist/index.js", "exports": { From 8ea7d74e44b59352d5c7f9e8c8926332822abb44 Mon Sep 17 00:00:00 2001 From: Sean Pertet Date: Mon, 12 Oct 2026 18:06:35 +0300 Subject: [PATCH 4/5] Up version number --- CHANGELOG.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index c142881..6620719 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [5.4.0](https://github.com/Space48/cloud-seed/compare/v5.3.0...v5.4.0) + +### Added + +- Added support for configuring `availableCpu`. + ## [5.3.0](https://github.com/Space48/cloud-seed/compare/v5.2.0...v5.3.0) ### Added From e6efb1e7a8f6880f2bd32cf9528615a358f0d03f Mon Sep 17 00:00:00 2001 From: Sean Pertet Date: Mon, 12 Oct 2026 18:09:37 +0300 Subject: [PATCH 5/5] Outlining appropriate values for cpu, linking gcp docs --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6620719..d2d97a2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,7 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Added -- Added support for configuring `availableCpu`. +- Added support for configuring `availableCpu`. Requires values set as per https://docs.cloud.google.com/run/docs/configuring/services/memory-limits#cpu-minimum ## [5.3.0](https://github.com/Space48/cloud-seed/compare/v5.2.0...v5.3.0)