Closed srb3 closed 6 years ago
@devoptimist Thank you for your contribution! This is a great improvement. We just merged a major update to our code style in #13, would you mind rebasing your change on latest master?
Tested and merged, thanks @devoptimist!
This was reported by a chef customer. Currently if the tfstate file is generated by terraform code that contains modules then the output is incomplete.
This is due to only looping on the first array item in the modules hash
tf_resources = tfstate["modules"][0]["resources"]
This fix should generate controls for all modules in the state file.
partially addresses this issue: https://github.com/inspec/inspec-iggy/issues/8