From 2a25f5cf8c04f686abdff283797266f90cb73cca Mon Sep 17 00:00:00 2001 From: skyuecx0630 <48788794+skyuecx0630@users.noreply.github.com> Date: Tue, 6 Aug 2024 17:03:21 +0900 Subject: [PATCH] Fix attribute name properly --- services/elasticache.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/services/elasticache.py b/services/elasticache.py index bd1a9ed..35baec7 100644 --- a/services/elasticache.py +++ b/services/elasticache.py @@ -65,7 +65,7 @@ def elasticache_repl_grp_encrypted_at_rest(): non_compliant_resources = [] for replication_group in replication_groups: - if replication_group["TransitEncryptionEnabled"] == True: + if replication_group["AtRestEncryptionEnabled"] == True: compliant_resource.append(replication_group["ARN"]) else: non_compliant_resources.append(replication_group["ARN"]) @@ -83,7 +83,7 @@ def elasticache_repl_grp_encrypted_in_transit(): non_compliant_resources = [] for replication_group in replication_groups: - if replication_group["AtRestEncryptionEnabled"] == True: + if replication_group["TransitEncryptionEnabled"] == True: compliant_resource.append(replication_group["ARN"]) else: non_compliant_resources.append(replication_group["ARN"])