mattray / inspec-iggy

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

empty generated.rb #37

Closed dwizzle204 closed 4 years ago

dwizzle204 commented 4 years ago

Describe the bug generated inspec file is empty except for title

title "InSpec Profile: generated by Iggy v0.8.0"

Environment InSpec Profile: generated by Iggy v0.8.0 inspec -v 4.18.97 terraform --version Terraform v0.12.20 depends:

To Reproduce Create a simple resource group and run inspec against the state file inspec terraform generate --tfstate terraform.tfstate --name terraform --platform azure --resourcepath ~/inspec/inspec-azure

───────────────────────── InSpec Iggy Code Generator ─────────────────────────

Creating new profile at /terraform/az-test/terraform • Creating file README.md • Creating directory controls • Creating file controls/generated.rb • Creating file inspec.yml

Expected behavior expecting some tests to be defined from the state file

Additional context Add any other context about the problem here.

mattray commented 4 years ago

I was able to recreate something similar recently. There was a regression in the recent release of InSpec, I'm waiting for them to tell me they've fixed it and I'll circle back and re-verify this. I think I went back to 4.18.50 or so and it worked, but I'll keep you posted on it.

dwizzle204 commented 4 years ago

No luck with https://downloads.chef.io/inspec/stable/4.18.51

dwizzle204 commented 4 years ago

Fixed in inspec-4.18.100