fix(terraform): panic when referring to a resource instance with a non-existent var #4983
Labels
kind/bug
Categorizes issue or PR as related to a bug.
scan/misconfiguration
Issues relating to misconfiguration scanning
Milestone
Source: https://github.com/aquasecurity/tfsec/issues/1926
If the meta argument
for_each
is passed a list where one of the elements refers to a non-existent variable, and one of the resources has a reference to an instance of the resource usingeach.value
, then this causes panic.modules/gcs/main.tf
main.tf
Output:
The text was updated successfully, but these errors were encountered: