IAC / A CONCEPT NOTE

Infrastructure as Code

managing infrastructure through machine-readable definition files

~65 sec read

Overview · mechanism
pitfall · examples

01 / THE SHORT VERSION

The idea in a few sentences.

Instead of clicking in a web console, you write configuration files (HCL for Terraform, YAML for CloudFormation, TypeScript for Pulumi) that declare your infrastructure. These files are version-controlled, code-reviewed, tested, and applied through automation. The cloud provider's API is the only interface — no manual steps.

02 / FOLLOW THE MECHANISM

How iac changes the game

  1. You

    write a config file describing a VPC, subnets, EC2 instances, and an RDS database.

  2. CI

    runs terraform plan or pulumi preview in the PR for peer review.

  3. Engine

    computes the diff between the current state (from state file) and the desired state (from config).

  4. Apply

    executes the necessary API calls to converge real-world resources to the config.

04 / COMMAND NOTES

Read the command, then the result.

Inspect the flags and arguments before trying an example. Snippets can need local setup, replacement values, or resources in your own environment.

EXAMPLE 01 · REFERENCE

preview changes before applying

terraform plan

EXAMPLE 02 · REFERENCE

see what Pulumi would change

pulumi preview

Explore command anatomy in the CLI lab