-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Closed
Labels
@aws-cdk/aws-ecsRelated to Amazon Elastic ContainerRelated to Amazon Elastic ContainerbugThis issue is a bug.This issue is a bug.p1potential-regressionMarking this issue as a potential regression to be checked by team memberMarking this issue as a potential regression to be checked by team member
Description
Describe the bug
Hi!
In the python lib, the signature of the aws_ecs/BaseService.load_balancer_target was changed.
in 2.208.0:
@jsii.member(jsii_name="loadBalancerTarget")
def load_balancer_target(
self,
*,
container_name: builtins.str,
container_port: typing.Optional[jsii.Number] = None,
protocol: typing.Optional[Protocol] = None,
) -> IEcsLoadBalancerTarget:
in 2.209.0:
@jsii.member(jsii_name="loadBalancerTarget")
def load_balancer_target(
self,
options: typing.Union[LoadBalancerTargetOptions, typing.Dict[builtins.str, typing.Any]],
alternate_options: typing.Optional[IAlternateTarget] = None,
) -> IEcsLoadBalancerTarget:
This caused our CI/CD pipelines to break.
Regression Issue
- Select this option if this issue appears to be a regression.
Last Known Working CDK Library Version
2.208.0
Expected Behavior
No breaking change.
Current Behavior
TypeError: BaseService.load_balancer_target() got an unexpected keyword argument 'container_name'
Reproduction Steps
Possible Solution
No response
Additional Information/Context
No response
AWS CDK Library version (aws-cdk-lib)
2.209.1
AWS CDK CLI version
2.1022.0
Node.js Version
Node.js v22.12.0
OS
linux
Language
Python
Language Version
Python 3.12.3
Other information
No response
Metadata
Metadata
Assignees
Labels
@aws-cdk/aws-ecsRelated to Amazon Elastic ContainerRelated to Amazon Elastic ContainerbugThis issue is a bug.This issue is a bug.p1potential-regressionMarking this issue as a potential regression to be checked by team memberMarking this issue as a potential regression to be checked by team member