hashicorp / terraform

Terraform enables you to safely and predictably create, change, and improve infrastructure. It is a source-available tool that codifies APIs into declarative configuration files that can be shared amongst team members, treated as code, edited, reviewed, and versioned.
https://www.terraform.io/
Other
42.34k stars 9.49k forks source link

Could not download module "diskencrypt" source code from "https://github.com/Azure/terraform-azurerm-diskencrypt/archive/v2.0.0.tar.gz//*?archive=tar.gz": bad response code: 404. #24490

Open rt7055 opened 4 years ago

rt7055 commented 4 years ago

Terraform Version

Terraform v0.12.19

Terraform Configuration Files

module "diskencrypt" {
  source               = "Azure/diskencrypt/azurerm"
}

Debug Output

$ terraform init
Initializing modules...
Downloading Azure/diskencrypt/azurerm 2.0.0 for diskencrypt...

Error: Failed to download module

Could not download module "diskencrypt" (VMprovision.tf:14) source code from
"https://github.com/Azure/terraform-azurerm-diskencrypt/archive/v2.0.0.tar.gz//*?archive=tar.gz":
bad response code: 404.

Error: Failed to download module

Could not download module "diskencrypt" (VMprovision.tf:14) source code from
"https://github.com/Azure/terraform-azurerm-diskencrypt/archive/v2.0.0.tar.gz//*?archive=tar.gz":
bad response code: 404.

Crash Output

Expected Behavior

Module gets downloaded

Actual Behavior

$ terraform init
Initializing modules...
Downloading Azure/diskencrypt/azurerm 2.0.0 for diskencrypt...

Error: Failed to download module

Could not download module "diskencrypt" (VMprovision.tf:14) source code from
"https://github.com/Azure/terraform-azurerm-diskencrypt/archive/v2.0.0.tar.gz//*?archive=tar.gz":
bad response code: 404.

Error: Failed to download module

Could not download module "diskencrypt" (VMprovision.tf:14) source code from
"https://github.com/Azure/terraform-azurerm-diskencrypt/archive/v2.0.0.tar.gz//*?archive=tar.gz":
bad response code: 404.

Steps to Reproduce

1. `terraform init`

Additional Context

References

https://registry.terraform.io/modules/Azure/diskencrypt/azurerm/2.0.0
ghost commented 4 years ago

This issue has been automatically migrated to terraform-providers/terraform-provider-azurerm#6313 because it looks like an issue with that provider. If you believe this is not an issue with the provider, please reply to terraform-providers/terraform-provider-azurerm#6313.

ghost commented 4 years ago

This issue has been automatically migrated to terraform-providers/terraform-provider-azurerm#6322 because it looks like an issue with that provider. If you believe this is not an issue with the provider, please reply to terraform-providers/terraform-provider-azurerm#6322.

rt7055 commented 4 years ago

Hi Is this issue is solve even if i use different version then also getting the same error.

Thanks

georgejdli commented 4 years ago

same issue with terraform v0.12.26

workaround is to use the github url as the source:

source = "github.com/Azure/terraform-azurerm-diskencrypt"

stabenfeldt commented 4 years ago

I noticed the same error when I tried to follow the "getting started with Jenkins-X" guide.

See details at https://github.com/jenkins-x/terraform-aws-eks-jx/issues/77

saikrishnamylaram commented 2 years ago

im aslo getting issue unable to download module

Could not download module "bastion_security_group" (security_groups.tf:5) │ source code from │ "git@gitlab.com:DXchange.io/devops/terraform-modules.git?ref=master": error │ downloading │ 'ssh://git@gitlab.com/DXchange.io/devops/terraform-modules.git?ref=master': │ /usr/bin/git exited with 128: Cloning into │ '.terraform/modules/bastion_security_group'... │ remote: │ remote: │ ======================================================================== │ remote: │ remote: The project you were looking for could not be found or you don't │ have permission to view it. │ remote: │ remote: │ ======================================================================== │ remote: │ fatal: Could not read from remote repository. │  │ Please make sure you have the correct access rights │ and the repository exists. │  ╵