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

Error while trying to access an attribute in terraform plan.out.json file that is not part of the root_module #574

Open
Aniket281292 opened this issue Nov 12, 2021 · 1 comment

Comments

@Aniket281292
Copy link

Question:

I have a terraform plan file(plan.out.json), against which i am running my feature tests against. I need to verify an attribute(terraform_version) as a part of terraform plan file which is not associated with a property or is not a property of the root module (configuration/root_module)

plan.out.json file will be as below:
{"format_version":"....","terraform_version":"0.14.11","variables":{...}, "root_module":{"resources":[....]} }

Does tf-compliance allow us to access such properties which are not a part of the root_module and does not have a "type" ? My feature test is unable to find this attribute , and i think thats because the attribute that i am trying to access is not part of the root_module. is that correct? If yes, is there a plan to add such a feature for Terraform-compliance?

@Aniket281292
Copy link
Author

@eerkunt , any idea on this one?

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

No branches or pull requests

1 participant