From 820c578917680b26a3b849ed7bad453230a1e67f Mon Sep 17 00:00:00 2001 From: Nathan Curtis Date: Wed, 27 Nov 2024 10:53:26 -0800 Subject: [PATCH] [TM-1494] Only beef up the research service in staging and prod. It increases costs a fair amount, and we don't really use this service in other environments. --- cdk/service-stack/lib/service-stack.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cdk/service-stack/lib/service-stack.ts b/cdk/service-stack/lib/service-stack.ts index 293e1bc..773a8a7 100644 --- a/cdk/service-stack/lib/service-stack.ts +++ b/cdk/service-stack/lib/service-stack.ts @@ -23,7 +23,8 @@ type Mutable = { }; const customizeFargate = (service: string, env: string, props: Mutable) => { - if (service === "research-service") { + if (service === "research-service" && ["prod", "staging"].includes(env)) { + // Beef up the research service in staging and prod props.cpu = 2048; props.memoryLimitMiB = 4096; }