Skip to content

(aws-ecs-patterns): Some service patterns still inline desired count to 1 when not present #12990

@dastbe

Description

@dastbe

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

Metadata

Metadata

Assignees

Labels

@aws-cdk/aws-ecs-patternsRelated to ecs-patterns librarybugThis issue is a bug.in-progressThis issue is being actively worked on.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions