-
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
Get rid of aws-codedeploy-api and asCodeDeployLoadBalancer #2449
Get rid of aws-codedeploy-api and asCodeDeployLoadBalancer #2449
Comments
A little bit of an explanation why it was modeled this way. We wanted to pass either a Classic ELB, or an ALB/NLB Target Group directly to the new codedeploy.DeploymentGroup(this, 'DG', {
// ...
loadBalancer: new elasticloadbalancing.LoadBalancer(this, 'ELB', {
// ...
}),
}); Because CodeDeploy depends on If you want to get rid of this dependency, we need to change the current API of |
Yes, let's change the API. Would it make sense to use "union-like classes": loadBalancer: codedeploy.LoadBalancer.classic(elb)
// or
loadBalancer: codedeploy.LoadBalancer.targetGroup(group) |
Yeah, that's probably the only sensible way to go here. |
…oup. BREAKING CHANGE: the type of the `loadBalancer` property in ServerDeploymentGroupProps has been changed. Fixes aws#2449
…oup. BREAKING CHANGE: the type of the `loadBalancer` property in ServerDeploymentGroupProps has been changed. Fixes aws#2449
I don't see a problem for the aws-codedeploy module to take a dependency on aws-elbv2 and aws-elb, eliminating the need for this intricate type hierarchy.
The text was updated successfully, but these errors were encountered: