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

fix(aws-elasticloadbalancingv2): fix rule dependency #1170

Merged
merged 3 commits into from
Nov 14, 2018

Conversation

rix0rrr
Copy link
Contributor

@rix0rrr rix0rrr commented Nov 14, 2018

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.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license.

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.
Copy link
Contributor

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 {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we just remove?

Copy link
Contributor Author

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()`.
@nathanpeck
Copy link
Member

Looks good!

@rix0rrr rix0rrr merged commit aeb0f4f into master Nov 14, 2018
@rix0rrr rix0rrr deleted the huijbers/alb-rule-dependency branch November 14, 2018 16:29
@NGL321 NGL321 added the contribution/core This is a PR that came from AWS. label Sep 27, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
contribution/core This is a PR that came from AWS.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

AWS::ECS::Service needs DependsOn AWS::ElasticLoadBalancingV2::ListenerRule
4 participants