What is Infrastructure as Code (IaC)?
Options
- Managing infrastructure with code files instead of manual clicks (Correct option)
- Writing application code directly on a production server
- A Java coding style that uses infrastructure classes
- Storing the source code of a project in the cloud
Answer
Managing servers, networks and other infrastructure through code files instead of manual clicks, for example with Terraform
Why
With IaC, you describe the infrastructure you want in text files that are stored in Git, reviewed and applied by a tool.
Benefits: repeatable (the same file builds the same environment), versioned and less prone to manual mistakes.
Common tools: Terraform, AWS CloudFormation, Azure Bicep.
Remember
IaC = infrastructure defined in code.