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.

WSLにTerraformインストール

Posted at

概要

  • WSLにTerraformをインストールする方法のメモ
  • homebrewでtfenvをインストール
  • tfenvでterraformをインストール

環境

Windows Subsystem For Linux (Ubuntu 18.04LTS)

インストール方法

# まずはお決まりのやつ
$ sudo apt update
$ sudo apt upgrade

# homebrewをインストール
$ sudo apt install linuxbrew-wrapper

# homebrewのセットアップ
$ echo 'umask 002' >> ~./bashrc
$ echo 'export PATH="/home/linuxbrew/.linuxbrew/bin:$PATH"' >> ~/.bashrc
$ echo 'export PATH="/home/linuxbrew/.linuxbrew/sbin:$PATH"' >> ~/.bashrc

# ここでいったんターミナルを再起動
$ sudo mkdir -P /home/linuxbrew/.linuxbrew/var/homebrew/linked
$ sudo chown -R ($whoami) /home/linuxbrew/.linuxbrew/var/homebrew/linked

# homebrewの動作確認
$ brew doctor

# tfenv インストール
$ brew install tfenv

# Terraform インストール
$ tfenv list-remote
$ tfenv install 0.14.8
$ tfenv use 0.14.8
$ terraform -v
Terraform v0.14.8
# 成功!
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?