Skip to content

Commit a6ca260

Browse files
Update configuration key and value for CKV_AWS_312
1 parent d9d6d51 commit a6ca260

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

checkov/terraform/checks/resource/aws/ElasticBeanstalkUseEnhancedHealthChecks.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,11 @@ def scan_resource_conf(self, conf):
2424
namespace = setting.get("namespace")
2525
if isinstance(namespace, list) and namespace[0] == "aws:elasticbeanstalk:healthreporting:system":
2626
name = setting.get("name")
27-
if isinstance(name, list) and name[0] == "HealthStreamingEnabled":
27+
if isinstance(name, list) and name[0] == "SystemType":
2828
value = setting.get("value")
2929
if value and isinstance(value, list):
3030
value = value[0]
31-
if value == "True" or (value and isinstance(value, bool)):
31+
if value == "enhanced":
3232
return CheckResult.PASSED
3333
return CheckResult.FAILED
3434

0 commit comments

Comments
 (0)