Terraform Version
Terraform v1.6.3 on linux_amd64
Terraform Configuration Files
…terraform config…
provider.tf
terraform {
required_version = “>= 0.13”
required_providers {
cloudstack = {
source = “Terraform Registry”
version = “~> 0.4.0”
}
}
}
provider “cloudstack” {
api_url = “”
api_key = “”
secret_key = “”
}
Debug Output
terraform --version
Terraform v1.6.3
on linux_amd64
terraform init -reconfigure
Initializing the backend…
Successfully configured the backend “http”! Terraform will automatically
use this backend unless the backend configuration changes.
Initializing provider plugins…
- Finding cloudstack/cloudstack versions matching “~> 0.4.0”…
- Installing cloudstack/cloudstack v0.4.0…
╷
│ Error: Failed to install provider
│
│ Error while installing cloudstack/cloudstack v0.4.0: github.com: Get
│ “https://objects.githubusercontent.com/github-production-release-asset-2e65be/392220602/d55925a4-b341-4408-93e5-4a369e881e1e?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20231102%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20231102T104808Z&X-Amz-Expires=300&X-Amz-Signature=ef4629ea52f2661db0f771bd4837dcf50004b855dc69381f9040a3e387849b11&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=392220602&response-content-disposition=attachment%3B%20filename%3Dterraform-provider-cloudstack_0.4.0_linux_amd64.zip&response-content-type=application%2Foctet-stream”:
│ net/http: TLS handshake timeout
╵
Cleaning up project directory and file based variables 00:00
ERROR: Job failed: exit status 1
Expected Behavior
what terraform configuration I have done by using that configuration my on instance should be provisioned on Cloudstack
Actual Behavior
when I’m running terraform init
my required provider plugin is not installed properly when I’m running the same cmd again and again it works some but most of the time I’m facing an error
terraform --version
Terraform v1.6.3
on linux_amd64
terraform init -reconfigure
Initializing the backend…
Successfully configured the backend “http”! Terraform will automatically
use this backend unless the backend configuration changes.
Initializing provider plugins…
- Finding cloudstack/cloudstack versions matching “~> 0.4.0”…
- Installing cloudstack/cloudstack v0.4.0…
╷
│ Error: Failed to install provider
│
│ Error while installing cloudstack/cloudstack v0.4.0: github.com: Get
│ “https://objects.githubusercontent.com/github-production-release-asset-2e65be/392220602/d55925a4-b341-4408-93e5-4a369e881e1e?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20231102%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20231102T104808Z&X-Amz-Expires=300&X-Amz-Signature=ef4629ea52f2661db0f771bd4837dcf50004b855dc69381f9040a3e387849b11&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=392220602&response-content-disposition=attachment%3B%20filename%3Dterraform-provider-cloudstack_0.4.0_linux_amd64.zip&response-content-type=application%2Foctet-stream”:
│ net/http: TLS handshake timeout
╵
Cleaning up project directory and file based variables 00:00
ERROR: Job failed: exit status 1
Steps to Reproduce
terraform init
terraform plan
terraform apply