Skip to content

Incompatible provider version - not supporting Mac M1 darwin_arm64 #214

@robertgartman

Description

@robertgartman

Wanted
Execute Terraform deploy of as part of following "Setup Jenkins X on Google Cloud with GKE". The cloned infrastructure repo has a dependency on this repo.

Result
Stuck in terraform init due to lack of support for Mac M1 architecture darwin_arm64.

A quick test modifying the main.tf like this...

remove obsolete (?) provider template
provider kubernetes "~>1.11.0" ==> "~>2.8.0"
provider helm "~>1.3.0" ==> "~>2.4.1"

... makes the terraform init succeed, though terraform plan fails.

Environment

  • jx: 3.2.256
  • terraform: v1.1.7, darwin_arm64
  • jenkins-x/terraform-google-jx: v1.10.11
  • macOs Monterey, 12.1

Output from terraform init

Upgrading modules...
Downloading git::https://github.com/jenkins-x/terraform-google-jx.git?ref=v1.10.11 for jx...
- jx in .terraform/modules/jx
- jx.backup in .terraform/modules/jx/modules/backup
- jx.cluster in .terraform/modules/jx/modules/cluster
Downloading git::https://github.com/jenkins-x/terraform-jx-health.git?ref=main for jx.cluster.jx-health...
- jx.cluster.jx-health in .terraform/modules/jx.cluster.jx-health
- jx.dns in .terraform/modules/jx/modules/dns
- jx.gsm in .terraform/modules/jx/modules/gsm
- jx.jx-boot in .terraform/modules/jx/modules/jx-boot
- jx.vault in .terraform/modules/jx/modules/vault

Initializing the backend...

Initializing provider plugins...
- Finding hashicorp/local versions matching ">= 1.2.0"...
- Finding hashicorp/null versions matching ">= 2.1.0"...
- Finding hashicorp/template versions matching ">= 2.1.0"...
- Finding hashicorp/google versions matching ">= 3.46.0, < 4.0.0"...
- Finding hashicorp/random versions matching ">= 2.2.0"...
- Finding hashicorp/kubernetes versions matching "~> 1.11.0"...
- Finding hashicorp/helm versions matching "~> 1.3.0"...
- Finding hashicorp/google-beta versions matching ">= 3.46.0, < 4.0.0"...
- Using previously-installed hashicorp/local v2.1.0
- Using previously-installed hashicorp/null v3.1.0
- Using previously-installed hashicorp/google v3.90.1
- Using previously-installed hashicorp/random v3.1.0
- Using previously-installed hashicorp/google-beta v3.90.1
╷
│ Warning: Version constraints inside provider configuration blocks are deprecated
│ 
│   on .terraform/modules/jx/main.tf line 15, in provider "google":
│   15:   version = ">= 3.46.0, < 4.0.0"
│ 
│ Terraform 0.13 and earlier allowed provider version constraints inside the provider configuration block, but that is now deprecated and will be removed in a
│ future version of Terraform. To silence this warning, move the provider version constraint into the required_providers block.
│ 
│ (and 7 more similar warnings elsewhere)
╵

╷
│ Error: Incompatible provider version
│ 
│ Provider registry.terraform.io/hashicorp/template v2.2.0 does not have a package available for your current platform, darwin_arm64.
│ 
│ Provider releases are separate from Terraform CLI releases, so not all providers are available for all platforms. Other versions of this provider may have
│ different platforms supported.
╵

╷
│ Error: Incompatible provider version
│ 
│ Provider registry.terraform.io/hashicorp/kubernetes v1.11.4 does not have a package available for your current platform, darwin_arm64.
│ 
│ Provider releases are separate from Terraform CLI releases, so not all providers are available for all platforms. Other versions of this provider may have
│ different platforms supported.
╵

╷
│ Error: Incompatible provider version
│ 
│ Provider registry.terraform.io/hashicorp/helm v1.3.2 does not have a package available for your current platform, darwin_arm64.
│ 
│ Provider releases are separate from Terraform CLI releases, so not all providers are available for all platforms. Other versions of this provider may have
│ different platforms supported.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions