Skip to content

Commit

Permalink
Merge pull request #19 from wri/task/TM-1494-gateway-internal-ec2
Browse files Browse the repository at this point in the history
[TM-1494] Only beef up the research service in staging and prod.
  • Loading branch information
roguenet authored Dec 2, 2024
2 parents d24ee38 + 820c578 commit a842f21
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cdk/service-stack/lib/service-stack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ type Mutable<T> = {
};

const customizeFargate = (service: string, env: string, props: Mutable<ApplicationLoadBalancedFargateServiceProps>) => {
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;
}
Expand Down

0 comments on commit a842f21

Please sign in to comment.