What is IaC or Infrastructure as a code ,Terraform and why to use it?
1 min readJul 30, 2022
IaC is a written template for the infrastructure by which we can manage and provision Infrastructure on Public cloud, Private Data Centres or in Multi cloud environment depending upon the IaC tool.
There are many IaC tools like AWS Cloud Formation, Azure Resource Manager but Terraform is best among all as it also supports Multi Cloud environment and there are various other benefits too.
Traditional way of managing the Infrastructure
- If It takes 5 days to create the DEV environment then same number of days It will take to create QA, Staging, Production and Disaster Recovery.
- If some step missing in documentation then it laid whole architectural changes
Managing Infrastructure with Terraform
- Everything is present in the code format
- Single code file then same infra to DEV, QA, Staging, Production and Disaster Recovery
- Benefits
- Visibility:- clear reference of what you created
- Stability:- If something broke accidentally
- Scalability:- One written template to reuse it many time
- Security:- IAC provide unified template and build other infrastructure accordingly
- Audit:- It also maintain the record of what is created in real world