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?
How would I acheive what I am trying to do?
Thanks for your time.
The text was updated successfully, but these errors were encountered:
Hi, I have the following CDK
I want to create a CloudFront distrubution using the Load Balancer as an origin, however the
loadBalancer
property ofHttpLoadBalancerExtension
is private, and I cant see any other methods which would allow access toloadBalancer
.Woundn't the CDK code above be a legitimate reason to need access to the underlying Load Balancer?
How would I acheive what I am trying to do?
Thanks for your time.
The text was updated successfully, but these errors were encountered: