Terraform のアーキテクチャを明示的に指定する
Apple Silicon 上での terraform 実行時に以下のエラーが発生。
code:error
Provider registry.terraform.io/hashicorp/template v2.2.0 does not have a package available for your current platform, darwin_arm64.
template_file から templatefile への置き換えで解決するかと思いきやエラーは解消せず。
解決策
インストール済みの terraform を削除し、TFENV_ARCH=amd64 を指定し再インストールすることでエラーは解消。
code:example
tfenv uninstall 1.5.7
TFENV_ARCH=amd64 tfenv install 1.5.7
tfenv use 1.5.7
参考URL
https://discuss.hashicorp.com/t/template-v2-2-0-does-not-have-a-package-available-mac-m1/35099/20
https://donbulinux.hatenablog.jp/entry/2023/06/20/163053
https://zenn.dev/whitebox/articles/7dde11f72dad0a
#Terraform