2
2

More than 1 year has passed since last update.

Ubuntu20.04.2 LTSにTerraformをインストール

Posted at

Terraformをインストール

リポジトリをアップデート

$ sudo apt update -y

wgetとunzipをインストール

$ sudo apt install -y wget
$ sudo apt install -y unzip

公式サイトからzipファイルをダウンロード、インストール

こちらの公式サイトよりLinuxの64bitをインストールする。そして展開をする。

$ wget https://releases.hashicorp.com/terraform/1.1.2/terraform_1.1.2_linux_amd64.zip
$ unzip terraform_1.1.2_linux_amd64.zip

展開してできてたファイルを/usr/local/binにコピーする。

$ sudo cp terraform /usr/local/bin

以上で環境構築は終わり。バージョンも確認しておく。

$ terraform -v
Terraform v1.1.2
on linux_amd64

        

2
2
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
2
2