首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Mac M1安装的Terraform提供程序问题

Mac M1安装的Terraform提供程序问题
EN

Stack Overflow用户
提问于 2021-11-19 18:07:26
回答 1查看 3.7K关注 0票数 1

我在我的Mac M1上使用Terraformv1.0.11。当我尝试运行terraform init时,会遇到以下错误:

代码语言:javascript
复制
Initializing provider plugins...
- Finding latest version of hashicorp/local...
- Finding latest version of hashicorp/null...
- Reusing previous version of hashicorp/aws from the dependency lock file
- Finding latest version of hashicorp/random...
- Finding latest version of hashicorp/template...
- Finding latest version of hashicorp/external...
- Installing hashicorp/external v2.1.0...
- Installed hashicorp/external v2.1.0 (signed by HashiCorp)
- Installing hashicorp/local v2.1.0...
- Installed hashicorp/local v2.1.0 (signed by HashiCorp)
- Installing hashicorp/null v3.1.0...
- Installed hashicorp/null v3.1.0 (signed by HashiCorp)
- Using previously-installed hashicorp/aws v3.53.0
- Installing hashicorp/random v3.1.0...
- Installed hashicorp/random v3.1.0 (signed by HashiCorp)
╷
│ 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.

我的提供者信息:

代码语言:javascript
复制
terraform {
  required_providers {
    aws = {
      version = "~> 3.53.0"
    }
  }
}

据我所知,提供程序版本不适用于M1。有什么解决办法吗?

我试着使用这个:https://github.com/hashicorp/terraform/issues/27257#issuecomment-754777716,但是使用了提供者版本3.53.0,但是遇到了问题。

这个问题有什么解决办法吗?

EN

回答 1

Stack Overflow用户

发布于 2021-11-25 17:43:57

您可以使用他们在这个答案上说的话在您的M1上运行,这就是为您的体系结构编译资源。

然而,模板是一个废弃资源,您可以使用在M1上正确工作的温铂

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/70039129

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档