Skip to Content
코드로 인프라 관리하기: 효율적인 인프라 관리를 위한 자동화 방법
book

코드로 인프라 관리하기: 효율적인 인프라 관리를 위한 자동화 방법

by 강재준
May 2017
Beginner to intermediate
400 pages
7h 33m
Korean
Hanbit Media, Inc.
Content preview from 코드로 인프라 관리하기: 효율적인 인프라 관리를 위한 자동화 방법
199
CHAPTER 9
인프라를 정의하는 패턴
QA
환경에서는 다음처럼 실행하면 된다.
$
terraform apply
-
state
=
qa
-
env
.
tfstate
-
var environment
=
qa
PROD
환경에서는 다음처럼 다시 실행하면 된다.
$
terraform apply
-
state
=
prod
-
env
.
tfstate
-
var environment
=
prod
이제 두 환경에서 서버가 생성되었으며, 이와 유사한 방식으로 부하 분산기을 매개변수화하면
ELB
도 개별적으로 생성할 수 있다.
CAUTION
_
환경별 상태 파일 또는
ID
앞 테라폼 명령줄 예제에서는 환경마다 별도의 상태 데이터 파일을 정의하는 –
state
매개변수를 사용한
다. 테라폼은 인프라 정보를 상태 파일에 저장해 관리한다. 단일 정의 파일로 인프라의 다수 인스턴스를 관리
할 때는 모든 인스턴스 각각의 상태를 개별 파일로 저장해야 한다.
클라우드포메이션과 같은 다른 정의 도구들도 인스턴스의 상태를 서버에 저장하고 매개변수(클라우드포메이
션의 경우,
StackName
)로 각 인스턴스를 식별한다.
9
.
1
.
5
관례: 스택 정의를 시험하고 전개하라
재사용 가능하고 매개변수화된 정의 파일은 신뢰성이 있는지를 시험한 후 상용 인프라에 적용
할 수 있다. 네트워크 구성 변경을 상용 환경에 바로 적용하지 않고, 관련 정의 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

스파크를 이용한 자연어 처리 : 대규모 텍스트를 다루는 가장 효율적인 딥러닝을 만나다

스파크를 이용한 자연어 처리 : 대규모 텍스트를 다루는 가장 효율적인 딥러닝을 만나다

이창현, 앨릭스 토머스
클라우드 엔지니어를 위한 97가지 조언

클라우드 엔지니어를 위한 97가지 조언

Emily Freeman, Nathen Harvey, 정기훈(Jung Ki Hun)

Publisher Resources

ISBN: 9788968483431