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

Unable to run terrascan scan #446

Closed
ranjitk-burwood opened this issue Dec 28, 2020 · 1 comment
Closed

Unable to run terrascan scan #446

ranjitk-burwood opened this issue Dec 28, 2020 · 1 comment

Comments

@ranjitk-burwood
Copy link

ranjitk-burwood commented Dec 28, 2020

  • terrascan version: v1.2.0
  • Operating System: Windows 10

Description

Errors received when running terrascan scan.

What I Did

This is my first attempt at using Terrascan. I downloaded this on Windows 10 with the curl command that was outlined in the README. I placed the terrascan.exe file in a folder and pointed my PATH to that folder. If I run terrascan by itself that will bring up the command prompt options.

When I change directories into my Terraform folder and run terraform scan I receive three errors.

error downloader/getter.go:101 failed to download "file://C:/Users/*~1/AppData/Local/Temp/slptoz/GoogleCloudPlatform/lb/google". error: 'error downloading 'file://C:/Users/*~1/AppData/Local/Temp/slptoz/GoogleCloudPlatform/lb/google': source path error: CreateFile C:/Users/*~1/AppData/Local/Temp/slptoz/GoogleCloudPlatform/lb/google: The system cannot find the path specified.'

error v12/load-dir.go:101 failed to download remote module "GoogleCloudPlatform/lb/google". error: 'error downloading 'file://C:/Users/*~1/AppData/Local/Temp/slptoz/GoogleCloudPlatform/lb/google': source path error: CreateFile C:/Users/*~1/AppData/Local/Temp/slptoz/GoogleCloudPlatform/lb/google: The system cannot find the path specified.'

error v12/load-dir.go:113 failed to build unified config. errors: <nil>: Failed to read module directory; Module directory does not exist or cannot be read.

@ranjitk-burwood
Copy link
Author

Sorry, this has been fixed. I had a load balancer module inside of my main.tf file and after removing that I was able to scan it.

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