-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
fix(aws-elasticloadbalancingv2): fix rule dependency #1170
Conversation
When ALB listener rules are used, the ordering dependency for services that require an attachment to a Load Balancer has to be on the `AWS::ElasticLoadBalancingV2::ListenerRule` object, not on the `Listener` object (as the current implementation does). Fixes #1160.
@@ -250,9 +250,20 @@ export abstract class BaseTargetGroup extends cdk.Construct implements ITargetGr | |||
|
|||
/** | |||
* Return an object to depend on the listeners added to this target group | |||
* | |||
* @deprecated Use 'loadBalancerDependency' instead. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we just remove?
* | ||
* @deprecated Use 'loadBalancerDependency' instead. | ||
*/ | ||
public loadBalancerDependency(): cdk.IDependable { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we just remove?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess. I didn't want to cause yet another BREAKING CHANGE. But sure.
BREAKING CHANGE: `targetGroup.listenerDependency()` has been renamed to `targetGroup.loadBalancerDependency()`.
Looks good! |
When ALB listener rules are used, the ordering dependency for services
that require an attachment to a Load Balancer has to be on the
AWS::ElasticLoadBalancingV2::ListenerRule
object, not on theListener
object (as the current implementation does).Fixes #1160.
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license.