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

can't install terraform provider on M1 Mac (arm64) #55

Open
roshbhatia opened this issue Mar 15, 2022 · 1 comment
Open

can't install terraform provider on M1 Mac (arm64) #55

roshbhatia opened this issue Mar 15, 2022 · 1 comment

Comments

@roshbhatia
Copy link

steps to reproduce

  1. Have an M1 Mac.
  2. Add Terraform provider to required_providers block.
  3. Run terraform init.

relevant info

infra on ξ‚  feat-aptible-in-tf [$!?] via πŸ’  infra on ☁️  (us-east-1) on ☁️   took 1m24s
❯ tf version
Terraform v1.1.5
on darwin_arm64
+ provider registry.terraform.io/hashicorp/aws v3.74.3
+ provider registry.terraform.io/hashicorp/random v3.1.0
+ provider registry.terraform.io/launchdarkly/launchdarkly v2.5.0
+ provider registry.terraform.io/mongodb/mongodbatlas v1.3.0
+ provider registry.terraform.io/sumologic/sumologic v2.13.0

Your version of Terraform is out of date! The latest version
is 1.1.7. You can update by downloading from https://www.terraform.io/downloads.html

infra on ξ‚  feat-aptible-in-tf [$!?] via πŸ’  infra on ☁️  (us-east-1) on ☁️
❯ head main.tf
terraform {
  experiments = [module_variable_optional_attrs]

  required_providers {
    aptible = {
      source  = "aptible/aptible"
      version = "0.1.6"
    }

    aws = {

output

infra on ξ‚  feat-aptible-in-tf [$!?] via πŸ’  infra on ☁️  (us-east-1) on ☁️
❯ tf init
Initializing modules...

Initializing Terraform Cloud...

Initializing provider plugins...
- terraform.io/builtin/terraform is built in to Terraform
- Reusing previous version of launchdarkly/launchdarkly from the dependency lock file
- Reusing previous version of hashicorp/aws from the dependency lock file
- Reusing previous version of hashicorp/random from the dependency lock file
- Finding aptible/aptible versions matching "0.1.6"...
- Reusing previous version of sumologic/sumologic from the dependency lock file
- Reusing previous version of mongodb/mongodbatlas from the dependency lock file
- Installing hashicorp/aws v3.74.3...
- Installed hashicorp/aws v3.74.3 (signed by HashiCorp)
- Installing hashicorp/random v3.1.0...
- Installed hashicorp/random v3.1.0 (signed by HashiCorp)
- Installing sumologic/sumologic v2.13.0...
- Installed sumologic/sumologic v2.13.0 (signed by a HashiCorp partner, key ID 58C1F2777F8E2367)
- Installing mongodb/mongodbatlas v1.3.0...
- Installed mongodb/mongodbatlas v1.3.0 (signed by a HashiCorp partner, key ID 2A32ED1F3AD25ABF)
- Installing launchdarkly/launchdarkly v2.5.0...
- Installed launchdarkly/launchdarkly v2.5.0 (signed by a HashiCorp partner, key ID 5902D4FCD0383786)

Partner and community providers are signed by their developers.
If you'd like to know more about provider signing, you can read about it here:
https://www.terraform.io/docs/cli/plugins/signing.html
β•·
β”‚ Warning: Experimental feature "module_variable_optional_attrs" is active
β”‚
β”‚   on main.tf line 2, in terraform:
β”‚    2:   experiments = [module_variable_optional_attrs]
β”‚
β”‚ Experimental features are subject to breaking changes in future minor or patch releases, based on feedback.
β”‚
β”‚ If you have feedback on the design of this feature, please open a GitHub issue to discuss it.
β”‚
β”‚ (and 2 more similar warnings elsewhere)
β•΅

β•·
β”‚ Error: Incompatible provider version
β”‚
β”‚ Provider registry.terraform.io/aptible/aptible v0.1.6 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.
β•΅

@joshraker
Copy link
Member

Thanks for bringing this to our attention! Until a package is available for arm64, you can work around this issue using Rosetta as described in this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants