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

Bug: Auto Scaling target value should not be used in the construct name #35

Open
joshlartz opened this issue May 10, 2022 · 0 comments · May be fixed by #322
Open

Bug: Auto Scaling target value should not be used in the construct name #35

joshlartz opened this issue May 10, 2022 · 0 comments · May be fixed by #322
Labels
bug Something isn't working effort/small p1

Comments

@joshlartz
Copy link
Contributor

See: https://github.com/cdklabs/cdk-ecs-service-extensions/blob/main/src/service.ts#L297,305

The Application Auto Scaling API only supports a single policy against a metric at a time. By putting the value in the construct name, it is causing CloudFormation to replace the resource, which it can't do.

The error looks like this Only one TargetTrackingScaling policy for a given metric specification is allowed. (Service: AWSApplicationAutoScaling;

(This problem is present in v1 as well.)

@joshlartz joshlartz changed the title Auto Scaling target value should not be used in the construct name Bug: Auto Scaling target value should not be used in the construct name May 10, 2022
@bvtujo bvtujo added bug Something isn't working effort/small p1 labels Jan 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working effort/small p1
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants