infrastructure as code

Describing servers, networks and other infrastructure in text files that a tool reads to create and change the real thing.

In more detail

Instead of clicking through a cloud console, you write what should exist into files and commit them to version control. The files can then be reviewed, compared, copied to build an identical second environment, and reused. Tools such as Terraform, OpenTofu and Ansible read the files and make the changes needed to match.

Examples

resource "aws_vpc" "main" { cidr_block = "10.0.0.0/16" }
In Terraform: Instead of clicking through a cloud console, you write what should exist into files and commit them to version control. The files can then be reviewed, compared, copied to build an identical second environment, and reused. A tool such as Terraform compares the files with what really exists and makes the changes needed to match.

Related terms

Taught in

References

Certification courses