Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

darwin_arm64 still not supported #101

Closed
joepjoosten opened this issue Oct 19, 2021 · 5 comments
Closed

darwin_arm64 still not supported #101

joepjoosten opened this issue Oct 19, 2021 · 5 comments
Labels
bug 🐛 An issue with the system

Comments

@joepjoosten
Copy link
Contributor

With the latest version (0.37), there is still an issue because of a left over dependency on registry.terraform.io/hashicorp/template

╷
│ 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.
╵

This prevents usage on e.g. apple m1, and future apple silicon macs

@joepjoosten joepjoosten added the bug 🐛 An issue with the system label Oct 19, 2021
@joepjoosten
Copy link
Contributor Author

Related to #34 , and #94

@Amina-Emenena
Copy link

If #34 and #94 don't work for you, I had to create a new directory called darwin_amd64 because my error was specifically complaining about darwin_amd64
╷ │ Error: Incompatible provider version │ │ Provider registry.terraform.io/hashicorp/template v2.2.0 does not have a package │ available for your current platform, darwin_amd64. │ │ 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.

I do have the darwin_arm64 directory as well and it is functioning with those specific changes using the aws provider for a separate infrastructure.

you would need to create that directory in .terraform.d/plugins/registry.terraform.io/hashicorp/template/2.2.0/ then follow the instructions from here

@nitrocode
Copy link
Member

@Amina-Emenena check your lock file, it may be stale. The new version of this module does not use that provider anymore.

See this

terraform_backend_config_template_file = var.terraform_backend_config_template_file != "" ? var.terraform_backend_config_template_file : "${path.module}/templates/terraform.tf.tpl"
terraform_backend_config_content = templatefile(local.terraform_backend_config_template_file, {

@farukak
Copy link

farukak commented Jun 22, 2022

  1. Download Provider Template and Unzip

https://releases.hashicorp.com/terraform-provider-template/2.2.0/terraform-provider-template_2.2.0_darwin_amd64.zip

  1. After unzip you need to copy the terraform-provider-template_v2.2.0_x4 file to /darwin_arm64 folder

cp ~/Downloads/terraform-provider-template_v2.2.0_x4 ~/.terraform.d/plugins/registry.terraform.io/hashicorp/template/2.2.0/darwin_arm64/

  1. Terraform Init

terraform init

@nch3ng
Copy link

nch3ng commented Mar 10, 2023

Would like correct this, spent some time to eye catch this. darwin_amd64

cp ~/Downloads/terraform-provider-template_v2.2.0_x4 ~/.terraform.d/plugins/registry.terraform.io/hashicorp/template/2.2.0/darwin_arm64/

should be

cp ~/Downloads/terraform-provider-template_v2.2.0_x4 ~/.terraform.d/plugins/registry.terraform.io/hashicorp/template/2.2.0/darwin_amd64/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 An issue with the system
Projects
None yet
Development

No branches or pull requests

5 participants