mattray / inspec-iggy

InSpec CLI plugin for generating compliance controls from Terraform and CloudFormation
Apache License 2.0
106 stars 18 forks source link

allowing for multiple modules to be included in generate output #12

Closed srb3 closed 6 years ago

srb3 commented 6 years ago

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

chris-rock commented 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?

mattray commented 6 years ago

Tested and merged, thanks @devoptimist!