Library · practice

Infrastructure as code

Define cloud infrastructure and server configuration in reviewed, versioned code with Terraform and Ansible, and run it safely across environments.

Infrastructure as code appeared in 88% of the Cloud and Network Engineer and 84% of the DevOps and Platform Engineer postings we read, with Terraform named far more than any alternative. Configuration management (Ansible and similar) appeared in 24% of DevOps postings.

The Terraform examples are validated with terraform validate and applied against a local AWS mock, so you can practise without a cloud bill. OpenTofu, the open-source fork, runs the same code.

  1. 1Terraform fundamentalsYour first Terraform: a secure data lake bucket4 min read
  2. 2Configuration management with AnsibleIdempotent server configuration with Ansible3 min read

Infrastructure as code lessons

Loading lessons…