-
Notifications
You must be signed in to change notification settings - Fork 150
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
Converting terraform plan file. ERROR: Failed to convert terraform plan file to JSON format via terraform #381
Comments
Same problem. terraform-compliance version ( |
I've just had the same issue, and can work around it with the following:
I would suggest that this line be changed to also include the error text |
Running
It looks to me like the fact I'm on a Mac is potentially the cause. Is the Docker image built against |
Description :
This is the output when running the container using
docker run --rm -v $PWD:/target -it eerkunt/terraform-compliance -f features -p tf.out
To Reproduce
My tf plan .out file is empty. I am following exactly the steps seen here:
https://docs.microsoft.com/en-us/azure/developer/terraform/best-practices-compliance-testing
I'm running with this command ->
docker run --rm -v $PWD:/target -it eerkunt/terraform-compliance -f features -p tf.out
`terraform-compliance v1.3.4 initiated
. Converting terraform plan file.
ERROR: Failed to convert terraform plan file to JSON format via terraform. Here is the error :
None
Error: Could not load plugin
Plugin reinitialization required. Please run "terraform init".
Plugins are external binaries that Terraform uses to access and manipulate
resources. The configuration provided requires plugins which can't be located,
don't satisfy the version constraints, or are otherwise incompatible.
Terraform automatically discovers provider requirements from your
configuration, including providers used in child modules. To see the
requirements and constraints, run "terraform providers".
2 problems:
obtain schema: unknown provider "registry.terraform.io/hashicorp/azurerm"
obtain schema: unknown provider "registry.terraform.io/hashicorp/random"`
Expected behavior :
No errors and for the tests to run
Tested versions :
v1.3.4
)Terraform v0.13.2
)Additional context
I was getting version errors when running latest v of terraform so had to downgrade
The text was updated successfully, but these errors were encountered: