Previous changes were made to make desired count truly optional through to cloudformation to make autoscaling work more consistently for create and update. However, this change was not applied to all patterns (example)
Reproduction Steps
Use ApplicationLoadBalancedEc2Service and do not set a desired count. This will result in a desired count of 1 in the template.
What did you expect to happen?
The final template should have no desired count set.
What actually happened?
The desired count was set to 1.
Environment
Cut this on behalf of someone else, but I've provided references to the issue in cdk itself
- CDK CLI Version : n/a
- Framework Version: n/a
- Node.js Version: n/a
- OS : n/a
- Language (Version): n/a
Other
This is 🐛 Bug Report