Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Recursive Loop Scanning Terraform #851

Closed
MrMickS opened this issue Jun 9, 2021 · 0 comments · Fixed by #900
Closed

Recursive Loop Scanning Terraform #851

MrMickS opened this issue Jun 9, 2021 · 0 comments · Fixed by #900
Assignees

Comments

@MrMickS
Copy link

MrMickS commented Jun 9, 2021

  • terrascan version: v1.16.0
  • Operating System: MacOS/Docker

Description

Terraform scan of a file that contains a module passing a parameter that uses the same name as the local that is used for the same function inside the module.

This generates a recursive loop within Terrascan.

What I Did

I ran in debug mode and could see that it was recursively expanding the internal local variable. I isolated the error into the code in the attached zip file.

locals_loop_error.zip

This is similar to a previous error that was fixed.

@MrMickS MrMickS changed the title Another recursive loop Recursive Loop Scanning Terraform Jun 16, 2021
@Rchanger Rchanger self-assigned this Jun 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants