Hi,
I have tried the upgrade option and I am running terraform init with the
.terraform (state) directory deleted and fresh, still getting the same results.
Additionally, I am calling a couple of modules and these have been set the same
versions.tf file specifying 0.4.0, so I can’t figure out where the reference to
0.3.0 comes from.
"terraform providers” gives the following output with no further clues to the
reference to 0.3.0.
Providers required by configuration:
.
├── provider[registry.terraform.io/cloudstack/cloudstack] 0.4.0
├── provider[registry.terraform.io/hashicorp/null]
├── provider[registry.terraform.io/hashicorp/consul]
├── module.cs-consul
│ ├── provider[registry.terraform.io/cloudstack/cloudstack] 0.4.0
│ ├── provider[registry.terraform.io/hashicorp/null]
│ └── provider[registry.terraform.io/hashicorp/consul]
└── module.cs-vpc
├── provider[registry.terraform.io/cloudstack/cloudstack] 0.4.0
└── provider[registry.terraform.io/hashicorp/consul]
Providers required by state:
provider[registry.terraform.io/terraform-providers/cloudstack]
provider[registry.terraform.io/hashicorp/consul]
provider[registry.terraform.io/hashicorp/null]
Niclas
> On 10 May 2022, at 10:05, Pearl d'Silva wrote:
>
> 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: users@cloudstack.apache.org
> 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
smime.p7s
Description: S/MIME cryptographic signature