Fix attribute name properly
This commit is contained in:
parent
e99e608c1a
commit
2a25f5cf8c
@ -65,7 +65,7 @@ def elasticache_repl_grp_encrypted_at_rest():
|
|||||||
non_compliant_resources = []
|
non_compliant_resources = []
|
||||||
|
|
||||||
for replication_group in replication_groups:
|
for replication_group in replication_groups:
|
||||||
if replication_group["TransitEncryptionEnabled"] == True:
|
if replication_group["AtRestEncryptionEnabled"] == True:
|
||||||
compliant_resource.append(replication_group["ARN"])
|
compliant_resource.append(replication_group["ARN"])
|
||||||
else:
|
else:
|
||||||
non_compliant_resources.append(replication_group["ARN"])
|
non_compliant_resources.append(replication_group["ARN"])
|
||||||
@ -83,7 +83,7 @@ def elasticache_repl_grp_encrypted_in_transit():
|
|||||||
non_compliant_resources = []
|
non_compliant_resources = []
|
||||||
|
|
||||||
for replication_group in replication_groups:
|
for replication_group in replication_groups:
|
||||||
if replication_group["AtRestEncryptionEnabled"] == True:
|
if replication_group["TransitEncryptionEnabled"] == True:
|
||||||
compliant_resource.append(replication_group["ARN"])
|
compliant_resource.append(replication_group["ARN"])
|
||||||
else:
|
else:
|
||||||
non_compliant_resources.append(replication_group["ARN"])
|
non_compliant_resources.append(replication_group["ARN"])
|
||||||
|
Loading…
Reference in New Issue
Block a user