Linux · Module 05
Terraform – Infrastructure as Code
Provision infrastructure declaratively with HCL, reviewed plans, and protected state.
What you will learn
- Explain declarative IaC and immutable patterns
- Distinguish Terraform provisioning from Ansible configuration
- Perform init, plan, apply, and state operations
- Use variables, data sources, outputs, and modules
Lessons
- Infrastructure as Code
Manage infrastructure as versioned, reviewable code.
- Terraform, HCL, and Ansible
Choose tools by lifecycle instead of forcing one tool to do everything.
- Workflow and state
Review execution plans and protect state as critical operational data.
- Variables, outputs, data sources, and modules
Design HCL interfaces and reuse code without hiding dependencies.
- Terraform with AWS
Model network dependencies and use credentials without hard-coding them.