You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(codedeploy): loadbalancer support for imported Target Groups (#17848)
This PR fixes that imported alb and nlb target group be able to configure to loadBalancer property.
Fixes#9677.
example:
```TypeScript
import * as cdk from '@aws-cdk/core';
import * as codedeploy from '@aws-cdk/aws-codedeploy';
import * as elbv2 from '@aws-cdk/aws-elasticloadbalancingv2';
const deploymentGroup = new codedeploy.ServerDeploymentGroup(this, 'deploymentGroup', {
...
// configurable imported application loadbalancer targetgroup
loadBalancer: codedeploy.LoadBalancer.application(
elbv2.ApplicationTargetGroup.fromTargetGroupAttributes(this, 'importedAlbTg', {
targetGroupArn: 'arn:aws:elasticloadbalancing:ap-northeast-2:111111111111:targetgroup/myAlbTargetgroup/abcd12345678efgf'
})
),
// also network loadbalancer targetgroup
loadBalancer: codedeploy.LoadBalancer.network(
elbv2.NetworkTargetGroup.fromTargetGroupAttributes(this, 'importedNlbTg', {
targetGroupArn: 'arn:aws:elasticloadbalancing:ap-northeast-2:111111111111:targetgroup/myNlbTargetgroup/wxyz09876543opqr'
})
),
});
```
----
*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
0 commit comments