Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AWS::ECS::TaskSet.LoadBalancer shadows AWS::ECS::Service.LoadBalancer #2206

Closed
sterwill opened this issue Nov 15, 2023 · 2 comments
Closed

Comments

@sterwill
Copy link

When I upgraded troposphere recently, troposphere.ecs.LoadBalancer lost its LoadBalancerName attribute, which is necessary for classic ELB support. The CloudFormation docs for AWS::ECS::Service LoadBalancer still list LoadBalancerName, so it looked like a troposphere issue. The comment on the class gave me a clue:

class LoadBalancer(AWSProperty):
    """
    `LoadBalancer <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-taskset-loadbalancer.html>`__
    """

It looks like the AWS::ECS::TaskSet.LoadBalancer is getting used to generate this type, although I would expect AWS::ECS::Service.LoadBalancer to map to that class instead (and maybe TaskSetLoadBalancer handles the other one?). I pulled the CloudFormation metadata archive and the service descriptions seem to confirm it.

I didn't submit a PR because I'm not sure how to handle a change like this in troposphere, since it has some back-compat implications.

@markpeek
Copy link
Member

Thank you for the issue. I see this conflict when the code is generated:

Potential property conflict: ecs LoadBalancer
AWS::ECS::Service.LoadBalancer: ['ContainerName', 'ContainerPort', 'LoadBalancerName', 'TargetGroupArn']
AWS::ECS::TaskSet.LoadBalancer: ['ContainerName', 'ContainerPort', 'TargetGroupArn']

I'll have to decide whether to delete TaskSet.LoadBalancer to prefer Service.LoadBalancer or perhaps rename the TaskSet one.

@markpeek
Copy link
Member

markpeek commented Dec 7, 2023

This has been released in 4.5.3.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants