aws_ecs: BaseService.register_load_balancer_targets() got an unexpected keyword argument 'container_name' #30419
Labels
@aws-cdk/aws-ecs
Related to Amazon Elastic Container
bug
This issue is a bug.
needs-triage
This issue or PR still needs to be triaged.
Describe the bug
I have a
my_service
instantiated fromaws_ecs.FargateService()
. A containermy-container
is added.I want to register load balancer target as per documentation:
https://docs.aws.amazon.com/cdk/api/v2/python/aws_cdk.aws_ecs/FargateService.html#aws_cdk.aws_ecs.FargateService.register_load_balancer_targets
It throws error:
TypeError: BaseService.register_load_balancer_targets() got an unexpected keyword argument 'container_name'
Expected Behavior
Able to add container
my-container
ofmy_service
to a new target group, added to the specified listener.Current Behavior
It throws error:
TypeError: BaseService.register_load_balancer_targets() got an unexpected keyword argument 'container_name'
Reproduction Steps
Possible Solution
No response
Additional Information/Context
No response
CDK CLI Version
2.144.0 (build 5fb15bc)
Framework Version
No response
Node.js Version
v20.11.1
OS
Ubuntu 22.04.4 LTS
Language
Python
Language Version
3.10.12
Other information
No response
The text was updated successfully, but these errors were encountered: