CloudFormation IaC
인프라를 코드로 선언해 반복 배포
이게 뭔가요? / What is this?
CloudFormation은 인프라 자체가 아니라, 어떤 인프라를 어떻게 구성할지 글로 적어둔 설계도(템플릿)를 실행해 AWS 자원을 자동으로 만들어 주는 서비스입니다. 이 설계도만 있으면 로봇 건설팀이 언제 어디서든 완전히 똑같은 건물을 다시 지어낼 수 있는 것과 같아서, 수작업 설정 실수를 없애고 환경을 그대로 복제할 수 있습니다.
개요 / Overview
CloudFormation은 템플릿으로 인프라를 정의해 동일한 환경을 여러 번, 여러 리전·계정에 만들 수 있게 합니다. "환경을 똑같이 재현하라", "수동 설정을 없애라"의 정답입니다.
동작 원리 / How it works
CloudFormation은 템플릿(JSON·YAML)에 선언한 리소스를 스택 단위로 생성·갱신·삭제합니다. 갱신 시 변경 세트로 무엇이 바뀔지 미리 볼 수 있고, 실패하면 자동 롤백합니다. 스택을 삭제하면 그 스택이 만든 리소스가 함께 사라져 임시 환경 정리가 간단합니다.
StackSets는 하나의 템플릿을 여러 계정과 리전에 한 번에 배포하며, Organizations와 연동해 새 계정이 생기면 자동 적용되게 할 수 있습니다. 드리프트 감지는 콘솔에서 수동으로 바뀐 부분을 찾아냅니다.
시험은 무엇을 보는가 / What the exam is testing
시험 신호는 "동일한 환경을 반복 생성", "수동 설정을 없애라", "조직 전체에 표준 구성 적용"(StackSets)입니다. 임시 개발 환경을 만들고 지우는 비용 절감 문항에도 나옵니다.
시험 포인트 / Exam points
하나의 템플릿을 여러 계정과 리전에 한 번에 배포합니다. 조직 전체에 표준 구성을 적용하라는 문제의 정답입니다.
누군가 콘솔에서 수동으로 바꾼 부분을 찾아냅니다. 템플릿과 실제 상태의 차이를 감사할 때 씁니다.
자주 틀리는 함정 / Common traps
재현성을 요구하는데 콘솔 수동 구성이나 문서화된 절차를 고르는 것 — 드리프트가 발생합니다.
CloudFormation
Declare infrastructure as code for repeatable deployment
이게 뭔가요? / What is this?
CloudFormation is not the infrastructure itself — it is a service that reads a written blueprint (a template) describing how infrastructure should look and automatically builds the AWS resources to match. With that blueprint alone, a robotic construction crew could rebuild the exact same building anywhere, anytime — eliminating manual setup mistakes and reproducing environments exactly.
개요 / Overview
CloudFormation defines infrastructure in templates so identical environments can be created repeatedly across Regions and accounts — the answer to "reproduce the environment exactly" and "eliminate manual setup".
동작 원리 / How it works
CloudFormation creates, updates, and deletes the resources declared in a template (JSON or YAML) as a stack. Updates preview through change sets and roll back automatically on failure. Deleting a stack removes the resources it created, making temporary environments easy to clean up.
StackSets deploy one template across many accounts and Regions at once, and integrate with Organizations so new accounts get it automatically. Drift detection finds resources changed manually in the console.
시험은 무엇을 보는가 / What the exam is testing
The signals are reproducing identical environments, eliminating manual setup, and applying a standard baseline organisation-wide (StackSets). It also appears in cost questions about spinning temporary environments up and down.
시험 포인트 / Exam points
Deploys one template to many accounts and Regions at once — the answer for rolling a standard baseline across an organization.
Finds resources changed manually in the console, auditing the gap between template and reality.
자주 틀리는 함정 / Common traps
Choosing manual console setup or a documented runbook when reproducibility is required — drift follows.
AWS SAA Hub Pro는 독립 학습 자료이며 Amazon Web Services, Inc.의 공식 서비스가 아닙니다. 시험 정책과 서비스 사양은 AWS 공식 문서를 기준으로 확인하세요.