본문으로 바로가기

CentOS7 Terraform install Guide

category IaC (Automation)/Terraform 2021. 6. 29. 16:57
반응형

centos7에서 terraform 설치가이드이다.

 

1. wget 및 unzip 패키지 설치

[root@test ~]# sudo yum install wget unzip -y

 

 

2. 패키지 다운로드

[root@test ~]# wget https://releases.hashicorp.com/terraform/0.13.2/terraform_0.13.2_linux_amd64.zip
--2021-06-29 16:49:31--  https://releases.hashicorp.com/terraform/0.13.2/terraform_0.13.2_linux_amd64.zip
Resolving releases.hashicorp.com (releases.hashicorp.com)... 151.101.1.183, 151.101.65.183, 151.101.129.183, ...
Connecting to releases.hashicorp.com (releases.hashicorp.com)|151.101.1.183|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 34869122 (33M) [application/zip]
Saving to: 'terraform_0.13.2_linux_amd64.zip'

terraform_0.13.2_li 100%[===================>]  33.25M  13.3MB/s    in 2.5s

2021-06-29 16:49:34 (13.3 MB/s) - 'terraform_0.13.2_linux_amd64.zip' saved [34869122/34869122]

 

3.  압축해제

[root@test ~]# unzip ./terraform_0.13.2_linux_amd64.zip -d /usr/local/bin
Archive:  ./terraform_0.13.2_linux_amd64.zip
  inflating: /usr/local/bin/terraform

 

4. terraform 버전 확인

[root@test ~]# terraform -v
Terraform v0.13.2

Your version of Terraform is out of date! The latest version
is 1.0.1. You can update by downloading from https://www.terraform.io/downloads.html

 

Terraform 공식사이트에서 다양한 sample을 확인할 수 있다.

https://www.terraform.io/docs/providers/openstack/r/networking_network_v2.html

 

https://registry.terraform.io/providers/terraform-provider-openstack/openstack/latest/docs/resources/networking_network_v2

 

registry.terraform.io

 

728x90

'IaC (Automation) > Terraform' 카테고리의 다른 글

Terraform Openstack VM생성 테스트  (0) 2021.06.29
terraform OpenStack 리소스 생성 샘플  (0) 2021.06.29