-
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
feat(elasticloadbalancingv2): add load balancer lookups #11089
Conversation
I've looked over my code since I put this PR up. Given that this change entails a new manifest schema version, and that I have implemented looking up security groups by id: Is now a good time to add tag search for security groups? |
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.
Thanks for the contribution! I would have preferred slightly smaller chunks over something this size -- e.g., just the load balancers by ARNs/tags would have been significant in itself. That being said, we'll take this as-is. I did a first pass of comments, will go deeper on the next round.
packages/@aws-cdk/aws-elasticloadbalancingv2/lib/shared/base-load-balancer.ts
Outdated
Show resolved
Hide resolved
packages/@aws-cdk/aws-elasticloadbalancingv2/lib/shared/base-listener.ts
Outdated
Show resolved
Hide resolved
packages/@aws-cdk/aws-elasticloadbalancingv2/lib/nlb/network-listener.ts
Outdated
Show resolved
Hide resolved
packages/@aws-cdk/aws-elasticloadbalancingv2/lib/nlb/network-listener.ts
Show resolved
Hide resolved
packages/@aws-cdk/aws-elasticloadbalancingv2/lib/alb/application-listener.ts
Outdated
Show resolved
Hide resolved
packages/@aws-cdk/aws-elasticloadbalancingv2/lib/alb/application-listener.ts
Outdated
Show resolved
Hide resolved
Thanks for the review. I'll get to these changes as soon as possible. :) |
@skinny85 I believe I've addressed your review items in the latest commits. I also updated from the main branch. Everything seems to be in working order. I'll continue to keep an eye out for more changes. :) |
@skinny85 @misterjoshua I'm taking a look at the cx-api changes, added |
While you guys are reviewing, would you prefer that I resolve the merge conflicts now or handle them later? |
Feel free to resolve them now. |
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.
Really close, just one legitimate comment and a few stylistics nitpicks.
packages/@aws-cdk/aws-elasticloadbalancingv2/lib/alb/application-load-balancer.ts
Outdated
Show resolved
Hide resolved
loadBalancerArn: options.userOptions.loadBalancerArn, | ||
loadBalancerTags: cxschemaTags, | ||
loadBalancerType: options.loadBalancerType, | ||
} as cxschema.LoadBalancerListenerContextQuery, |
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.
Is this cast really necessary?
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.
The props are a { [key: string]: any }
, so the cast isn't strictly necessary. But, I think the type hint is valuable if only for the reader's understanding, as otherwise, the correct type for the context query isn't obvious on inspection. I'll defer to your judgement on this matter if you still feel it should be changed. :)
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.
Great! Thanks for the contribution!
Thank you for contributing! Your pull request will be updated from master and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork). |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
Thank you for contributing! Your pull request will be updated from master and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork). |
Adds
fromLookup()
methods to both Application and Network load balancers as well as their listeners.Closes #11088
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license