cho2cee
TIL
cho2cee
전체 방문자
오늘
어제
  • 전체 게시글 (78)
    • Cloud (31)
      • AWS (12)
      • Kubernetes (16)
      • IaC (3)
    • Security (15)
      • ELK (5)
      • Reversing (10)
    • Network (8)
    • Linux (4)
    • Etc. (20)
      • 기타 (4)
      • 업무 (16)

태그

  • AWS
  • 합격후기
  • CLOUD
  • SAA
  • VPC

최근 댓글

블로그 메뉴

  • 홈
  • 태그
  • 방명록
hELLO
cho2cee

TIL

Cloud/IaC

[Terraform] Terraform 사용을 위한 사전준비

2022. 3. 7. 10:23

zsh 설치

zsh는 Z shell의 약자로써, shell의 확장버전이라고 볼 수 있다. 다양한 테마를 제공하고 shell의 확장기능을 제공함으로써 사용성을 높일 수 있다. 

 

Linux (Amazon Linux) 

[ec2-user@ip-172-31-41-41 terraform-test]$ sudo yum install zsh
Loaded plugins: extras_suggestions, langpacks, priorities, update-motd
amzn2-core                                                      | 3.7 kB  00:00:00
Resolving Dependencies
--> Running transaction check
---> Package zsh.x86_64 0:5.8.1-1.amzn2.0.1 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

=======================================================================================
 Package       Arch             Version                     Repository            Size
=======================================================================================
Installing:
 zsh           x86_64           5.8.1-1.amzn2.0.1           amzn2-core           3.0 M

Transaction Summary
=======================================================================================
Install  1 Package

Total download size: 3.0 M
Installed size: 7.3 M
Is this ok [y/d/N]: y
Downloading packages:
zsh-5.8.1-1.amzn2.0.1.x86_64.rpm                                | 3.0 MB  00:00:00
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : zsh-5.8.1-1.amzn2.0.1.x86_64                                        1/1
  Verifying  : zsh-5.8.1-1.amzn2.0.1.x86_64                                        1/1

Installed:
  zsh.x86_64 0:5.8.1-1.amzn2.0.1

Complete!

 

AWS CLI 설치 

현재 AWS CLI는 version 1, 2가 있는데, 2가 최신 버전이며 모든 최신 기능을 지원하기 때문에 AWC CLI 2로 설치하는 것을 권장한다. 

 

Linux (Amazon Linux)

1. AWS CLI 설치 

# Linux x86 (64-bit)
$ curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"
$ unzip awscliv2.zip
$ sudo ./aws/install

# Linux ARM
$ curl "https://awscli.amazonaws.com/awscli-exe-linux-aarch64.zip" -o "awscliv2.zip"
$ unzip awscliv2.zip
$ sudo ./aws/install

2. 버전 확인

[ec2-user@ip-172-31-41-41 terraform-test]$ aws --version
aws-cli/2.4.27 Python/3.8.8 Linux/5.10.96-90.460.amzn2.x86_64 exe/x86_64.amzn.2 prompt/off

 

Terraform 설치 

  • 테라폼은 코드형 인프라를 뜻하는 Infrastructure ac Code를 구현할 수 있는 대표적인 오픈소스 툴이다. 
  • 서버 구축과 운영에 대한 자동화를 구현할 수 있다. 

 

Amazon Linux 

🔗 https://www.terraform.io/downloads

 

1. Terraform 설치 

$ sudo yum install -y yum-utils
$ sudo yum-config-manager --add-repo https://rpm.releases.hashicorp.com/AmazonLinux/hashicorp.repo
$ sudo yum -y install terraform

2. 버전 확인 

[ec2-user@ip-172-31-41-41 terraform-test]$ terraform --version
Terraform v1.1.7
on linux_amd64

'Cloud > IaC' 카테고리의 다른 글

[Terraform] Terraform 기본 개념  (0) 2022.03.14
[Terraform] AWS Configure 세팅  (0) 2022.03.10
    'Cloud/IaC' 카테고리의 다른 글
    • [Terraform] Terraform 기본 개념
    • [Terraform] AWS Configure 세팅
    cho2cee
    cho2cee
    Today I Learned

    티스토리툴바