Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`. 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)

### Added
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down
1 change: 1 addition & 0 deletions stacks/gcp/GcpStack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,7 @@ export default class GcpStack extends TerraformStack {
},
serviceConfig: {
availableMemory: func.memory?.toString().concat("M") ?? "256M",
availableCpu: func.cpu,
timeoutSeconds: func.timeout ?? 60,
maxInstanceCount: func.maxInstances,
minInstanceCount: func.minInstances,
Expand Down
1 change: 1 addition & 0 deletions types/runtime.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ export type FunctionConfig = {
timeout?: number;
runtime: string;
memory?: number;
cpu?: string;
retryOnFailure?: boolean;
staticIp?: boolean;
vpc?: {
Expand Down
Loading