aztfexport icon indicating copy to clipboard operation
aztfexport copied to clipboard

Error: Failed to install provider

Open networksavvy opened this issue 6 months ago • 3 comments

Running aztfexport res "GUID" initialises and then errors out with an error (featured below). Terraform init for regular works fine.

Whilst it's running it does download the provider to the folder though.

Does aztfexport require open firewalls / proxy settings that normal Terraform does not? Any suggestions on a cause of this?

  Error: Failed to install provider

  Error while installing hashicorp/azurerm v4.24.0: releases.hashicorp.com: Get
  "https://releases.hashicorp.com/terraform-provider-azurerm/4.24.0/terraform-provider-azurerm_4.24.0_windows_amd64.zip":
  remote error: tls: unexpected message

        * task error: error running terraform init: exit status 1

  Error: Failed to install provider

  Error while installing hashicorp/azurerm v4.24.0: could not query provider
  registry for registry.terraform.io/hashicorp/azurerm: the request failed
  after 2 attempts, please try again later: Get
  "https://registry.terraform.io/v1/providers/hashicorp/azurerm/4.24.0/download/windows/amd64":
  EOF

networksavvy avatar Jun 13 '25 14:06 networksavvy

This is an issue of the terraform registry website, instead of this repo.

magodo avatar Jun 14 '25 00:06 magodo

This is an issue of the terraform registry website, instead of this repo.

Except it works perfectly fine in the same vscode session on the same device when using "terraform init". Meanwhile "aztfexport res" outputs that error message. That's why I am asking here as the only difference is using aztfexport.

networksavvy avatar Jun 16 '25 12:06 networksavvy

When you run terraform init, did you setup the same azurerm provider (same version). The aztfexport uses terraform to intialize (&download) the provider. Is this systematically happening?

magodo avatar Jun 16 '25 22:06 magodo