Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scaling policies for ECS service added by CDK do not appear in the web console #28300

Closed
morishin opened this issue Dec 8, 2023 · 2 comments
Closed
Assignees
Labels
@aws-cdk/aws-ecs Related to Amazon Elastic Container bug This issue is a bug. duplicate This issue is a duplicate.

Comments

@morishin
Copy link

morishin commented Dec 8, 2023

Describe the bug

This issue was first reported in issue #14297. The issue was closed by a bot, but the problem still exists.

I suspect the reason is that a cluster name of CloudWatch alarm is wrong. (#14297 (comment))

Expected Behavior

expected

Current Behavior

"No Auto Scaling resources configured for this service."

current

Reproduction Steps

import { App, Stack } from "aws-cdk-lib";
import { ApplicationLoadBalancedFargateService } from 'aws-cdk-lib/aws-ecs-patterns'

const app = new App();
const stack = new Stack(app, 'MyStack');

const { service } = new ApplicationLoadBalancedFargateService(
  this,
  'MyService',
  {
    // ... other parameters ...
    desiredCount: 6,
  }
)
const scaling = service.autoScaleTaskCount({
  minCapacity: 6,
  maxCapacity: 20,
})
scaling.scaleOnCpuUtilization('MyAutoScaling', {
   targetUtilizationPercent: 50,
   scaleInCooldown: Duration.seconds(60),
   scaleOutCooldown: Duration.seconds(60),
})

Possible Solution

No response

Additional Information/Context

No response

CDK CLI Version

2.106.0

Framework Version

No response

Node.js Version

18.18.2

OS

macOS

Language

TypeScript

Language Version

5.2.2

Other information

No response

@morishin morishin added bug This issue is a bug. needs-triage This issue or PR still needs to be triaged. labels Dec 8, 2023
@github-actions github-actions bot added the @aws-cdk/aws-ecs Related to Amazon Elastic Container label Dec 8, 2023
@tim-finnigan tim-finnigan self-assigned this Dec 11, 2023
@tim-finnigan
Copy link

Thanks for bringing this back to our attention, I'll reopen #14297 for further tracking and will close this as a duplicate.

@tim-finnigan tim-finnigan added duplicate This issue is a duplicate. and removed needs-triage This issue or PR still needs to be triaged. labels Dec 11, 2023
Copy link

⚠️COMMENT VISIBILITY WARNING⚠️

Comments on closed issues are hard for our team to see.
If you need more assistance, please either tag a team member or open a new issue that references this one.
If you wish to keep having a conversation with other community members under this issue feel free to do so.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
@aws-cdk/aws-ecs Related to Amazon Elastic Container bug This issue is a bug. duplicate This issue is a duplicate.
Projects
None yet
Development

No branches or pull requests

2 participants