Can't attach CfnAutoScalingGroup to an ECS Cluster #8005
Labels
@aws-cdk/aws-autoscaling
Related to Amazon EC2 Auto Scaling
@aws-cdk/aws-ecs
Related to Amazon Elastic Container
closed-for-staleness
This issue was automatically closed because it hadn't received any attention in a while.
effort/large
Large work item – several weeks of effort
feature-request
A feature should be added or improved.
needs-reproduction
This issue needs reproduction.
p2
Use Case
I've created an ASG via CfnAutoScalingGroup for my EC2 ECS hosts, why ? :
So, I've created all my needed resources :
After all that resources creation, the last to be created is the ecs.Ec2Service, but unfortunatly, I have this error :
Cluster for this service needs Ec2 capacity. Call addXxxCapacity() on the cluster.
Of course, my Cluster have my EC2 container instance up & available.
Proposed Solution
You already have feature requests opened (some from me) for :
It'll also be interesting to be able to have :
UserData prop in aws-ecs.AddCapacityOptions.
Without these updates, I'm blocked.
And be able to attach an ASG to an ECS Service by Ref (his name in our case) ?
Other
But now, how after all that lines of Typescript code... What can I do to have my ECS Service created ?
This is a 🚀 Feature Request
The text was updated successfully, but these errors were encountered: