본문 바로가기
AWS/Part 4. Ch02 테라폼을 이용한 인프라 관리

CH02_01. 테라폼 소개

by Engineer-Lee 2022. 5. 31.
반응형

테라폼은 하시코프에서 만들어진 인프라 도구이다.

하시 코프에서 만들어진 인프라 관리 도구들은 공동적으로 HashiCorp Configuration Language(HCL)을 이용하여 코드를

작성할 수 있다.

https://www.terraform.io/intro

 

What is Terraform | Terraform by HashiCorp

Terraform is an infrastructure as code tool that lets you build, change, and version cloud and on-prem resources safely and efficiently.

www.terraform.io

 

HCL은 YAML 코드와 유사하다.

https://www.terraform.io/language

 

Overview - Configuration Language | Terraform by HashiCorp

You can use the Terraform language to write configuration files that tell Terraform how to manage a collection of infrastructure.

www.terraform.io

https://www.redhat.com/ko/topics/automation/what-is-yaml

 

YAML이란?

YAML은 구성 파일 작성에 자주 사용되는 데이터 직렬화 언어입니다. YAML은 사람이 읽을 수 있기 때문에 프로그래밍 언어 중에서도 인기가 높습니다.

www.redhat.com

 

 

테라폼은 Write, Plan, Apply 과정을 거친다.

Write: 코드 작성

Plan: 어떠한 변화가 생기는지 체크

Apply: 인프라에 변경사항을 적용

 

테라폼은 여러 provider를 지원한다.(AWS, GCP, Azure, K8s 등)

또한 여러 module도 지원한다.(ex: openVPN을 만들기 위해 사용되는 AWS EC2와 EC2를 사용하기 위한 security group, ebs volume 등을 그룹핑한 모듈)

 

https://registry.terraform.io/

 

Terraform Registry

 

registry.terraform.io

반응형