The Skill Explained
What Are Terraform and Infrastructure as Code?
Terraform is a tool for creating and managing cloud infrastructure from code. Infrastructure as Code (IaC) means describing servers, networks, databases and permissions in text files, so they can be reviewed, versioned and rebuilt automatically instead of clicked together by hand.
Why AI Employers Ask for Them
AI platforms need a lot of infrastructure: GPU machines, storage, networks, model endpoints and access rules. Defining it as code makes it reproducible, auditable and safer to change. Platform, MLOps and cloud engineers are expected to work this way.
How It Works
In Terraform you write configuration in its own language (HCL) that declares the resources you want, such as "a storage bucket with this name and these permissions". Providers connect Terraform to clouds and services such as AWS, Google Cloud or Azure.
The workflow has three steps: init prepares the project, plan shows exactly what will be created, changed or destroyed, and apply makes the changes. Terraform keeps a state file that records what it manages, usually stored remotely and locked so two people cannot change it at once.
Reusable modules package common setups. Other IaC tools include OpenTofu, Pulumi and cloud-specific templates; the principles are the same: declare, review, apply, and never change production by hand.
Day to day, Terraform work happens through pull requests: a change to the code shows its plan in the review, a colleague approves it, and an automated pipeline applies it. This keeps one source of truth, prevents drift between what is written and what exists, and lets a whole environment be recreated after a mistake or for a new region.
What You Do With It at Work
- Define cloud resources for an AI platform in code.
- Review infrastructure changes through plans and pull requests.
- Create reusable modules for common setups.
- Manage environments (development, test, production) consistently.
- Encode security settings and permissions so they are auditable.
Tools and Terms You Will Meet
- Infrastructure as Code
- Managing infrastructure through versioned configuration files.
- Provider
- A plugin that lets Terraform manage one platform's resources.
- Plan and apply
- Preview the changes, then carry them out.
- State
- Terraform's record of the resources it manages.
- Module
- A reusable package of infrastructure code.
Industry Example: Pharma
In a regulated environment, every change to the cloud setup of an AI system is a reviewed Terraform change, giving auditors a complete history of who changed what and why.
A Common Mix-Up
Terraform does not configure what runs inside a server; it creates and connects the infrastructure. Other tools handle application deployment.
How Deep Do You Need to Go?
- Know itExplain Infrastructure as Code and why it beats manual setup.
- Use itWrite Terraform for cloud resources and use plan, apply and remote state.
- Master itDesign module libraries and safe workflows for many teams and environments.