aws-cloudformation / aws-cloudformation/cloudformation-coverage-roadmap
AWS::ElasticLoadBalancingV2::TargetGroup - Unable to switch loadbalancer assigned to target group
- Dominant language
- No language data
- Stars
- 1.1k
- Forks
- 62
- PR merge metrics
- No merged PRs in 30d
Description
## 1. Title
Change of loadbalancer assigned with target group not working correctly
## 2. Scope of request
There is an issue where a target group hooked with a listener rule cannot be updated via cloudformation update if we change the loadbalancer listener arn.
Exception from CF:
`Embedded stack arn:aws:cloudformation:eu-west-1:******:stack/Service-1RT431GLHHSJZ/2c9ae7a0-6f69-11ea-b62a-0abc432e4032 was not successfully updated. Currently in UPDATE_ROLLBACK_IN_PROGRESS with reason: The following resource(s) failed to update: [ListenerRule, DnsRecord].`
I think that it failed because the previous target group to listener rule connection was not deleted before new was created.
## 3. Expected behavior
CF API should check whether it should delete current listener rule connection and allow new one to be connected (if it is the same listener rule resource).
## 6. Category (required) - Will help with tagging and be easier to find by other users to +1
4. Networking & Content (VPC, Route53, API GW,...)
Contributor guide
Assessment
This issue has not been assessed yet.