Skip to content

Commit

Permalink
Update app-stack.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
josephsaffron authored Apr 11, 2024
1 parent a2eba5f commit 5172616
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/app-stack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@ export class AppStack extends cdk.Stack {
// Create a load-balanced Fargate service and make it public
const fargateService = new ecs_patterns.ApplicationLoadBalancedFargateService(this, "ApiTestToolFargateService", {
cluster: cluster, // Required
cpu: 512, // Default is 256
desiredCount: 2, // Default is 1
cpu: 256, // Default is 256
desiredCount: 1, // Default is 1
taskImageOptions: {
image: ecs.ContainerImage.fromEcrRepository(
repository,
Expand All @@ -83,7 +83,7 @@ export class AppStack extends cdk.Stack {

const scaling = fargateService.service.autoScaleTaskCount({
maxCapacity: 3,
minCapacity: 2
minCapacity: 1
});

scaling.scaleOnCpuUtilization('CpuScaling', {
Expand Down

0 comments on commit 5172616

Please sign in to comment.