-
Notifications
You must be signed in to change notification settings - Fork 144
kitchen-terraform doesn't pick up InSpec profile. Standalone InSpec executable does. #262
Comments
In the It seems the documentation should give a more in-dept explanation of all configuration parameters (what they are, why they are there, how to use them, etc). Otherwise this risks only creating confusion. |
As this is currently a blocker, I ended up using |
Hello again @walterdolce! I apologize for the frustrating experience. I believe this problem is caused by an invalid configuration. suites:
- name: default
verifier:
systems:
- name: k8s_pod
backend: local
controls:
- k8s_pod The Change Log entry for 4.0.0 mentions the change from Have you reviewed the verifier documentation? It attempts to explain the usage of each configuration attribute and links to relevant InSpec documentation. We know that hosting the usage documentation with the Ruby documentation is awkward and we intend to migrate that content to the GitHub site soon. |
Hello,
I understand that if I am invoking InSpec directly, I need to provide the target as follows:
I believe some values must be added in order to populate the I have defined suites:
- name: default
verifier:
systems:
- name: aws_instance
backend: aws
controls:
- aws_instance
- aws_security_group |
Update
|
Hey @ncs-alane! Thank you kindly for clarifying that for me. Yes, applying the config structure change it works as normal. I did not peruse the Ruby docs in detail before, I will from now on ;) I look forward to seeing the |
@swifthorseman It did not work after setting the env variables. Do we have an example? |
It worked.. Thanks @swifthorseman |
Kitchen Terraform Example for testing aws resources |
Hi! I'm using the latest version of the library (
4.0.0
) and I have the following.kitchen.yml
file:The module folder structure is as follows:
kitchen-terraform
is able to create and converge. But when I run the verify step, it doesn't pick up the tests. Please see below.But when I run InSpec in isolation, it does:
Is that expected?
The text was updated successfully, but these errors were encountered: