0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

terraformコマンドが勝手にkillされる

Posted at

どうやら最新のterraformがmacだと相性が悪いらしい?という話。

環境

macOS 15.5
terraform 1.14.5

本題

miseでlatest(1.14.5)のterraformをインストール。

$ mise use -g terraform@latest

terraformコマンドを叩くとなぜかkillされる。

$ terraform init
zsh: killed     terraform init
$ terraform -v
zsh: killed     terraform -v

解決

ぱっと調べたところ、バージョンが悪そうな気配がしたので、同様の環境を使っている同僚のバージョンを聞いてそれと同じバージョン(1.11.4)をインストールし直して解決しました。

$ mise remove terraform@latest
$ mise use -g terraform@1.11.4

試したこと

useだけではなくinstallも明示してやるか…というのも試してみたけどだめでした。

$ mise remove terraform@latest
$ mise install terraform@latest
$ mise use -g terraform@latest

brewで入れ直してもだめ。

$ mise remove terraform@latest
$ brew install hashicorp/tap/terraform

ターミナルの再起動等も試したけどだめでした。

インストールしたはずなのにterraformコマンドの実態がなく、動いていない様子でした。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?