Skip to content

(aws-ecs-patterns): Enable autoscaling with ApplicationLoadBalancedEc2Service #18868

@5nafu

Description

@5nafu

General Issue

I would like to use an ApplicationLoadBalancedEc2Service together with autoscaling of EC2 instances.

The Question

I would like to use an ApplicationLoadBalancedEc2Service together with an EC2 ASG. To enable autoscaling of the ECS instances, I would need to apply the capacity_provider_strategies parameter.
The L2 @aws-cdk/aws-ecs.Ec2Service already supports this option, but the L3 construct does not.

Unfortunately the EC2Service does not allow to add this strategy later to the finished service either.

CDK CLI Version

2.10.0

Framework Version

No response

Node.js Version

16.3.0

OS

OSX

Language

Typescript

Language Version

No response

Other information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    effort/smallSmall work item – less than a day of effortfeature-requestA feature should be added or improved.feature/enhancementA new API to make things easier or more intuitive. A catch-all for general feature requests.p2

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions