From fb5f1fc3cafe68e8a774a4b1f15815430d49581f Mon Sep 17 00:00:00 2001 From: skyuecx0630 <48788794+skyuecx0630@users.noreply.github.com> Date: Mon, 5 Aug 2024 19:25:49 +0900 Subject: [PATCH] Fix elb_logging_enabled check --- services/alb.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/alb.py b/services/alb.py index 438c913..b6763fe 100644 --- a/services/alb.py +++ b/services/alb.py @@ -109,7 +109,7 @@ def elb_logging_enabled(): result = [ attribute for attribute in filter( - lambda x: x['Key'] == "connection_logs.s3.enabled" + lambda x: x['Key'] == "access_logs.s3.enabled" and x['Value'] == "true", response['Attributes'], )