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

Fails to scan on Windows, incorrect path for plugins #314

Closed
JamesWoolfenden opened this issue Dec 10, 2019 · 6 comments
Closed

Fails to scan on Windows, incorrect path for plugins #314

JamesWoolfenden opened this issue Dec 10, 2019 · 6 comments
Labels

Comments

@JamesWoolfenden
Copy link

JamesWoolfenden commented Dec 10, 2019

I downloaded the terrafomer-all-windows-amd64.exe executable and tried a basic scan:

 terraformer import aws --resources=vpc,subnet
2019/12/10 10:43:50 aws importing default region
2019/12/10 10:43:50 aws importing... vpc
2019/12/10 10:44:00 plugin error 1: open C:\Users\james.woolfenden\.terraform.d/plugins/windows_amd64: The system cannot find the path specified.
2019/12/10 10:44:00 open C:\Users\james.woolfenden\.terraform.d/plugins/windows_amd64: The system cannot find the path specified.

Should it not be looking for (ignoring the wrong slashes):
C:\Users\james.woolfenden.terraform.d\plugin-cache\windows_amd64

Thanks

@meshuga
Copy link
Contributor

meshuga commented Dec 10, 2019

The issue also been raised in hashicorp/terraform#23320. Terraformer has copied logic from Terraform but should apply fix to bug above to perform lookup in %APPDATA%\terraform.d\plugins on Windows machines.

@vpernankil
Copy link

any update on this ?

@MostHated
Copy link

I am having this issue as well, though it is with Cloudflare if that makes a difference.

@meshuga
Copy link
Contributor

meshuga commented Jan 24, 2021

Oh, I see TF also stores providers in its internal user-specific directory cache. The location varies based on TF version (0.12 vs 0.13) and OS - hashicorp/terraform#26141 (comment)

More info: https://www.terraform.io/docs/cli/config/config-file.html#provider-plugin-cache

@github-actions
Copy link

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days.

@github-actions github-actions bot added the Stale label Apr 13, 2021
@github-actions
Copy link

This issue was closed because it has been stalled for 7 days with no activity.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants