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?

More than 3 years have passed since last update.

tfenvを使ったTerraform環境構築

Last updated at Posted at 2022-07-05

はじめに

  • Terraformを使う場面があり、その際に環境構築を行ったので、方法をメモとして残しておく。

環境

  • MACでの環境構築。
    • Windowsでは、構築の際に使用したtfenvをそのまま使うことができない。
    • 使う場合はWSLやDockerを利用して、Linux環境を構築する必要がある。
  • tfenvを使用。
    • tfenvとはTerraformのバージョン管理ツール。

手順

  • tfenvのインストール

    brew install tfenv
    
  • インストール可能なバージョンを確認

    tfenv list-remote
    
  • インストールしたいバージョンのTerraformをインストール

    tfenv install 0.12.31
    
  • 使用バージョンを指定

    tfenv use 0.12.31
    
  • インストールされているバージョンを確認

    tfenv list
    
    • 使用バージョンを指定している場合は下記のようになる。
      eee.png
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?