-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Closed
Labels
@aws-cdk/aws-ecsRelated to Amazon Elastic ContainerRelated to Amazon Elastic ContainerbugThis issue is a bug.This issue is a bug.effort/smallSmall work item – less than a day of effortSmall work item – less than a day of effortneeds-cfnThis issue is waiting on changes to CloudFormation before it can be addressed.This issue is waiting on changes to CloudFormation before it can be addressed.p2
Description
🐛 Bug Report
What is the problem?
The default behavior of an ECS service update is to maintain the existing desired count if no desired count is specified. This is because customers often use autoscaling, or time based scaling and their scaling rules have already set the service to a specific desired count that is appropriate. Because CDK and CFN can not know this number at the time of the deploy the correct behavior is to omit it and retain the existing desired count.
However when you leave desired count out of the ECS construct in CDK it instead sets it to 1. This overrides whatever the current autoscaling set desired count is, causing a brief period of instability before the desired count is automatically restored to the right number by autoscaling.
pgarbe, i906, marioizquierdo, jiaweiwu0403, AlvinMengCao and 3 more
Metadata
Metadata
Assignees
Labels
@aws-cdk/aws-ecsRelated to Amazon Elastic ContainerRelated to Amazon Elastic ContainerbugThis issue is a bug.This issue is a bug.effort/smallSmall work item – less than a day of effortSmall work item – less than a day of effortneeds-cfnThis issue is waiting on changes to CloudFormation before it can be addressed.This issue is waiting on changes to CloudFormation before it can be addressed.p2