Topic

Infrastructure as Code

Terraform and Ansible: provision and configure servers from code.

  • 6 hands-on labs
  • Beginner to advanced
  • 1 Academy course
  • DevOps plan

Opens with the DevOps plan. Cloud, AI, Data and Teams include it too.

Labs

6 labs in order. Beginner to advanced.

Each lab is a real machine built only for you, with a guide and checks that read what you actually did.

  1. Beginner

    Terraform fundamentals

    Infrastructure as code with Terraform: providers and state, plan and apply, changes that replace, outputs, removing what you no longer need and putting drift right.

  2. Intermediate

    The Terraform language: for_each, templates and expressions

    Write Terraform that scales with data instead of copy and paste: a typed map variable, one resource block that makes a container per entry with for_each, pages from a template, labels from a dynamic block, outputs from for expressions and a validation rule.

  3. Intermediate

    Terraform modules, variables and workspaces

    Structure Terraform for real teams: a module of your own with validated variables, used twice, and one configuration running staging and production as separate workspaces.

  4. Intermediate

    Ansible fundamentals

    Configure servers from one place with Ansible: an inventory, ad hoc commands, a playbook that installs and templates, and runs that are safe to repeat.

  5. Advanced

    Terraform state: import, refactor, forget and protect

    Work with Terraform's state the way real projects need to: import servers someone made by hand without restarting them, refactor addresses with moved blocks, hand a resource over with a removed block, replace one thing on purpose and protect the rest from destroy.

  6. Advanced

    Ansible roles, handlers and vault

    Ansible the way teams maintain it: roles for each job, handlers that restart only on change, settings in group variables and secrets encrypted with Ansible Vault.

Academy

Read the lessons first.

  • Terraform, with confidence

    Review infrastructure plans, protect state, and compose reusable modules.

    Intermediate · 4 lessons · 47 min

Learning paths

On these learning paths.