3
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

[m1]asdfでバージョン管理を行なったterraformを使うまで[mac]

Posted at

この流れ

前提

  • asdfインストール済み
    • 未インストールの場合、冒頭のnodejsの記事を参照してasdfを導入する

環境

  • MacBook Air (M1, 2020)

terraform

現状確認

% asdf plugin list
nodejs
python

% asdf list
nodejs
  14.17.4
  16.2.0
  16.3.0
python
  3.8.10
  3.9.5

プラグイン追加

% asdf plugin add terraform

プラグイン追加されたの確認

% asdf plugin list
nodejs
python
terraform

最新版確認

% asdf latest terraform
1.0.8

最新版インストール

% asdf install terraform latest

インストールされたの確認

% asdf list
nodejs
  14.17.4
  16.2.0
  16.3.0
python
  3.8.10
  3.9.5
terraform
  1.0.8

プライマリバージョン設定

% asdf global terraform 1.0.8

バージョンとかそれぞれ確認

% asdf current
nodejs          16.3.0          /Users/ユーザー名/.tool-versions
python          3.9.5           /Users/ユーザー名/.tool-versions
terraform       1.0.8           /Users/ユーザー名/.tool-versions

% asdf current terraform
terraform       1.0.8           /Users/ユーザー名/.tool-versions

% cat ~/.tool-versions
nodejs 16.3.0
python 3.9.5
terraform 1.0.8

% terraform -v
Terraform v1.0.8
on darwin_arm64

これでterraform入門できる

3
1
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
3
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?