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
I want to enable access log for already existing network load balancer in ec2.
For that I have tried
const existingNLB = elbv2.NetworkLoadBalancer.fromNetworkLoadBalancerAttributes(this, 'ExistingNLB', {
loadBalancerArn: 'ARN',
vpc: existing_vpc
});
existingNLB.logAccessLogs(accessLogBucket);
Even I have tried to get the network load balancer using fromlookup function and then using setattribute function to enable the access log. Other way i tried is add listener and then enable it
After that I converted the INetworkLoadBalancer to NetworkLoadBalancer and tried the same method but not working
When I am doing the same thing by creating the new networkloadbalancer it is working
Do anyone have any idea how to enable access logging for already existing network load balancer in AWS using cdk or HEXEcsEc2Construct?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I want to enable access log for already existing network load balancer in ec2.
For that I have tried
const existingNLB = elbv2.NetworkLoadBalancer.fromNetworkLoadBalancerAttributes(this, 'ExistingNLB', {
loadBalancerArn: 'ARN',
vpc: existing_vpc
});
existingNLB.logAccessLogs(accessLogBucket);
Even I have tried to get the network load balancer using fromlookup function and then using setattribute function to enable the access log. Other way i tried is add listener and then enable it
After that I converted the INetworkLoadBalancer to NetworkLoadBalancer and tried the same method but not working
When I am doing the same thing by creating the new networkloadbalancer it is working
Do anyone have any idea how to enable access logging for already existing network load balancer in AWS using cdk or HEXEcsEc2Construct?
Beta Was this translation helpful? Give feedback.
All reactions