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
const httpLoadBalancerExtension = new HttpLoadBalancerExtension();
serviceDescription.add(httpLoadBalancerExtension);
new cloudfront.Distribution(this, id + 'Distribution', {
defaultBehavior: {
origin: new origins.LoadBalancerV2Origin(httpLoadBalancerExtension.loadBalancer),
.....
I want to create a CloudFront distrubution using the Load Balancer as an origin, however the loadBalancer property of HttpLoadBalancerExtension is private, and I cant see any other methods which would allow access to loadBalancer.
Woundn't the CDK code above be a legitimate reason to need access to the underlying Load Balancer?