Infrastructure as Code
What is Infrastructure as Code?
Infrastructure as Code: Define your cloud infrastructure in code files — then deploy, update, and destroy it reproducibly. Terraform (multi-cloud) is the most popular choice across all three clouds. (AWS: CloudFormation; GCP: Deployment Manager; Azure: Bicep / ARM Templates) Infrastructure as Code tools let you define cloud resources in files and create, update or remove them reproducibly. Terraform and its open-source fork OpenTofu work across clouds. Each cloud also has its own: CloudFormation for AWS, Bicep for Azure and Deployment Manager for Google Cloud.
Frequently asked questions about Infrastructure as Code
How is Infrastructure as Code used in practice?
The choice depends on your situation. Terraform's strength is one language for every provider, including DNS, monitoring and SaaS tools, not just one cloud. Native tools integrate more tightly with their own platform and get new features first.
What should you keep in mind with Infrastructure as Code?
Whichever you choose, store state safely in a shared backend with locking, review changes as plans before applying, and keep secrets out of the files. The real value comes from treating infrastructure changes exactly like code changes: in Git, reviewed and repeatable.
At a glance
| Category | Cloud services |
|---|---|
| Explained by | Reinier de la Parra |
| Updated |