DevOpsLab

Course2 · CI/CD & platforms → Infrastructure as Code

2 · CI/CD & platforms

Theory · Infrastructure as Code

18 min · Module 9 · Theory

How to study this topic

  1. Read the theory below (concepts, bullets, and shell/YAML examples).
  2. Try the Exam pool and Book quizzes in this module.
  3. After each quiz, use Show answer on every question to review.

Infrastructure as Code

Terraform, Ansible, and Pulumi define infrastructure in version-controlled files. Plan before apply; remote state with locking prevents concurrent corruption.

Shell, YAML & config examples

terraform init
terraform plan -out=tfplan
terraform apply tfplan

# Ansible
ansible-playbook -i inventory prod.yml

Hands-on practice: /lab/

Log in to track progress / take quizzes