Closed brianlambert24 closed 2 months ago
@brianlambert24 Thank you for reaching out This is the relevant check - CKV_AWS_192 https://github.com/bridgecrewio/checkov/blob/main/checkov/terraform/checks/resource/aws/WAFACLCVE202144228.py We would be grateful if you could contribute a fix :slightly_smiling_face:
Describe the issue Crashing when 2 dynamic WAF "rule" blocks are defined.
AttributeError: 'int' object has no attribute 'get'
Examples Minimal example
Command:
checkov -f WAF.tf --quiet --output cli -c CKV_AWS_192,CKV_AWS_342
Exception Trace Please share the trace for the exception and all relevant output by checkov. To maximize the understanding, please run checkov with LOG_LEVEL set to debug as follows:
Desktop (please complete the following information):
Additional context Add any other context about the problem here (e.g. code snippets).
Removing 1 dynamic "rule" will not produce a stacktrace but results in Unknown for CKV_AWS_192
Result: {'result': <CheckResult.UNKNOWN: 'UNKNOWN'>, 'evaluated_key
Removing both dynamic "rule" blocks results in both checks passing.