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

(elb2.ApplicationListener): (Unable to add tags to ApplicationListener) #24761

Closed
seno5979 opened this issue Mar 23, 2023 · 2 comments
Closed
Labels
@aws-cdk/aws-elasticloadbalancingv2 Related to Amazon Elastic Load Balancing V2 feature-request A feature should be added or improved. needs-cfn This issue is waiting on changes to CloudFormation before it can be addressed.

Comments

@seno5979
Copy link

seno5979 commented Mar 23, 2023

Describe the bug

Try to add tag to ALB Listener using cdk python.

Expected Behavior

The tag will be appended to the AplicationListener

Current Behavior

The tag did not be created/ appended to the AplicationListener

Reproduction Steps

ssl_listener = elb2.ApplicationListener(self, "my_secure_http_listener",
                                           load_balancer=my_alb,
                                           port=443,
                                           open=True,
                                           ssl_policy=SslPolicy.RECOMMENDED,
                                           certificates=[domain_cert],
                                           protocol=ApplicationProtocol.HTTPS,
                                           default_target_groups=[target_group],
                                           )
Tags.of(ssl_listener).add("owner", "xx@xx.com")

Possible Solution

No response

Additional Information/Context

No response

CDK CLI Version

2.69.0

Framework Version

No response

Node.js Version

18.12.1

OS

Linux

Language

Python

Language Version

Python 3.10

Other information

No response

@seno5979 seno5979 added bug This issue is a bug. needs-triage This issue or PR still needs to be triaged. labels Mar 23, 2023
@github-actions github-actions bot added the @aws-cdk/aws-elasticloadbalancingv2 Related to Amazon Elastic Load Balancing V2 label Mar 23, 2023
@peterwoodworth peterwoodworth removed bug This issue is a bug. needs-triage This issue or PR still needs to be triaged. labels Mar 23, 2023
@peterwoodworth
Copy link
Contributor

Tags are only applied to CloudFormation resources which are taggable. I'm assuming you're referring to the listener resource as the one that isn't getting tagged, and that's because it doesn't have a tags property to set a tag in

If you would like to see this functionality, please submit an issue in the CloudFormation Coverage Roadmap repo

@peterwoodworth peterwoodworth added feature-request A feature should be added or improved. needs-cfn This issue is waiting on changes to CloudFormation before it can be addressed. labels Mar 23, 2023
@github-actions
Copy link

⚠️COMMENT VISIBILITY WARNING⚠️

Comments on closed issues are hard for our team to see.
If you need more assistance, please either tag a team member or open a new issue that references this one.
If you wish to keep having a conversation with other community members under this issue feel free to do so.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
@aws-cdk/aws-elasticloadbalancingv2 Related to Amazon Elastic Load Balancing V2 feature-request A feature should be added or improved. needs-cfn This issue is waiting on changes to CloudFormation before it can be addressed.
Projects
None yet
Development

No branches or pull requests

2 participants