aws_cdk.aws_ecs_patterns.ApplicationLoadBalancedFargateService can't set capacity provider strategies of fargate service

Viewed 126

I am trying to incorporate Fargate and fagate spot capacity providers into my ECS cluster and automate them as code. But the ApplicationLoadBalancedFargateService by itself creates an object of FargateService. Using the service method exposed I got a copy of the created object. Since there were no getters or setters for the capacity_provider_strategies of the fagateService I could not set the capacity_provider_strategies attribute of that object. Is there a way to overcome this issue?

0 Answers
Related