I want to configure AWS NLB to store logs at the S3 bucket? I have:
- AWS EKS cluster (v1.15),
- NLB (created by Nginx controller),
- S3 bucket with AIM (done as described here: https://docs.aws.amazon.com/elasticloadbalancing/latest/network/load-balancer-access-logs.html).
I've added these annotations to my terraform code to nginx ingress:
set {
name = "controller.service.annotations.service\\.beta\\.kubernetes\\.io/aws-load-balancer-access-log-enabled"
value = "true"
}
set {
name = "controller.service.annotations.service\\.beta\\.kubernetes\\.io/aws-load-balancer-access-log-s3-bucket-name"
value = "nlb-logs-bucket"
}
set {
name = "controller.service.annotations.service\\.beta\\.kubernetes\\.io/aws-load-balancer-access-log-s3-bucket-prefix"
value = "/nlblogs"
}
I see that annotations are added to the controller, but in AWS console NLB settings didn't change (logs aren't saving to the bucket).