GoogleCloudPlatform / terraformer

CLI tool to generate terraform files from existing infrastructure (reverse Terraform). Infrastructure to Code
Apache License 2.0
12.47k stars 1.64k forks source link

open \.terraform.d/plugins/windows_amd64: The system cannot find the path specified. #1866

Closed chetan-alti closed 3 months ago

chetan-alti commented 5 months ago

Hai Everyone, when running terraformer I'm facing open .terraform.d/plugins/windows_amd64: The system cannot find the path specified.

I have downloaded the [.exe ] (https://github.com/GoogleCloudPlatform/terraformer/releases/download/0.8.24/terraformer-all-windows-amd64) file from release page. then I have renamed the exe to terraformer and moved the exe to D://terraformer

I have a use-case I'm trying, the following is the prerequiesites folder structure (added image at the end) Iacfolder | localmain.tf |_ provider.tf

provider.tf

terraform {
  required_providers {
    aws = {
      source  = "hashicorp/aws"
      version = "5.26.0"
    }
  }
}

# Configure the AWS Provider
provider "aws" {
  region = "us-east-1"
  access_key = "acces_key"
  secret_key = "sec_key"
}

localmain.tf

terraform {
  backend "local" {
    path = "terraform.tfstate"
  }
}

I ran terraform init , it generated .terrform folder

but when I run terraformer import aws --resources=s3 --regions=us-east-1 getting following error message 2024/04/19 15:57:45 aws importing region us-east-1 2024/04/19 15:57:45 open .terraform.d/plugins/windows_amd64: The system cannot find the path specified.

image

Your help much appreciated , Thanks in advance

dhilgarth commented 5 months ago

windows_386 looks like you may be on a 32 bit machine instead of 64 bit?

chetan-alti commented 5 months ago

Hai @dhilgarth , Thank for your response. I'm using the 64 bit machine.

But I was able to resolve the issue.

What I did

Update the terraform version to v1.8.0 , earlier I was using the older version of terraform. After this it ran smoothly image

I could not exactly deduce the root cause, but updating the terraform version resolved :)

github-actions[bot] commented 3 months ago

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[bot] commented 3 months ago

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