Hi what's the correct way to get access logs enabl...
# getting-started
l
Hi what's the correct way to get access logs enabled on a load balancer from the awsx package? Pulumi keeps turning off access logs without warning on my load balancers and it's become blocking because every nth deploy requires me to manually enable access logs.
m
Are you setting the access logs to
enabled: true
on your load balancer Pulumi resource? Both the ALB and the NLB take the same access logs arguments from pulumi-aws. It would be helpful if you could show a (sanitized and minimal) code snippet.
l
Copy code
const loadBalancer = new awsx.lb.ApplicationLoadBalancer(params.lbName, {
    name: params.lbName,
    accessLogs: {enabled: true, bucket: params.accessLogsBucket, prefix: params.accessLogsPrefix},
    ...
  }
For some reason nothing changes in the details on up and no change in preview.
Thanks for replying, I've been going in and toggling it after deploys, but it's not apparent from the pulumi deploys that it's being toggled off.
m
What makes you think that Pulumi is turning it off? Does Pulumi detect that it's disabled when you disable it, i.e., is it showing a diff on "up"?
l
Actually, this may have just been a case of Fridays oslt. Today this is working as expected? Thanks so much for responding, and sorry about that.