Hi,

Can you check the following:

  *   can you try doing a 'terraform init -upgrade'
  *   If the above step doesn't help, in the directory where you are running 
terraform init - check if there exists a .terraform directory? If yes, can you 
clear it , and also delete the .terraform.lock.hcl file

Thanks,
Pearl

________________________________

 

From: Niclas Lindblom
Sent: Tuesday, May 10, 2022 12:41 PM
To: [email protected]
Subject: Terraform 0.4 error

Hello,

I am trying to run Terraform Init against a directory which has the version set 
to the latest provider

versions.tf

terraform {
  required_providers {
    cloudstack = {
      source = "cloudstack/cloudstack"
      version = "0.4.0"
    }
  }
}

I am getting an error message which seem to reference the previous version 0.3.0

Provider 
registry.terraform.io/terraform-providers/cloudstack<http://registry.terraform.io/terraform-providers/cloudstack>
 v0.3.0 does not have a package available for your current platform, 
darwin_arm64

The .terraform directory has been deleted before running and the state is 
clean, does anyone know what’s going on here ? I can’t see that I have anything 
referencing the 0.3.0 version, though it was used previously. Is there a cash 
somewhere I might have missed ?

Thanks

Niclas

Reply via email to