728x90

문제

 

terraform init 명령어를 입력하였을 때, 아래와 같은 에러가 발생할 때가 있다.

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

 

drawin_arm64 환경으로 인하여 발생하는 에러로, 관련 라이브러리를 설치하면 해결할 수 있다.

 

해결 방법

 

1. m1-terraform-provider-helper 설치

  • brew install kreuzwerker/taps/m1-terraform-provider-helper

 

2. helper activate

  • m1-terraform-provider-helper activate

3. template 설치

  • m1-terraform-provider-helper install hashicorp/template -v v2.2.0
    • activate를 하지 않으면 에러가 발생합니다.

 


레퍼런스

https://discuss.hashicorp.com/t/template-v2-2-0-does-not-have-a-package-available-mac-m1/35099

 

Template v2.2.0 does not have a package available - Mac M1

Hi Any idea how I can fix this error, when performing terraform init? template v2.2.0 does not have a package available for your current platform, darwin_arm64 My terraform version is: Terraform v1.1.4 on darwin_arm64 Thanks!

discuss.hashicorp.com

 

반응형
코드플리