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

Deploying sets desired capacity / running capacity back to 1 #349

Closed
jseppi opened this issue Jan 22, 2021 · 2 comments · Fixed by #353
Closed

Deploying sets desired capacity / running capacity back to 1 #349

jseppi opened this issue Jan 22, 2021 · 2 comments · Fixed by #353

Comments

@jseppi
Copy link
Contributor

jseppi commented Jan 22, 2021

I had a running watchbot service that had scaled up to 5 (the value of maxSize I had set in my template).
I increased maxSize to 10 and redeployed. The service desired and running capacity were reset to 1.

@rclark
Copy link
Contributor

rclark commented Jan 22, 2021

Resources[prefixed('Service')] = {
Type: 'AWS::ECS::Service',
Properties: {
Cluster: options.cluster,
DesiredCount: options.minSize,

Recently, the DesiredCount became an optional property in an AWS::ECS::Service. Having it present in the CloudFormation template is what causes stack updates to reset running container counts.

Removing this property entirely ought to solve this issue.

@jseppi
Copy link
Contributor Author

jseppi commented Jan 24, 2021

I think this is the same as #273

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants