Skip to content

FAQ

Does IaC replace manual configuration entirely?

In mature teams, mostly. In practice, most organizations keep manual access for emergencies (break-glass procedures) and audit every such access afterward. The goal is not zero manual actions; it is zero undocumented manual actions. The definition file remains the source of truth, and any drift caused by manual intervention is detected and reconciled.

Terraform or Ansible?

They solve different problems. Terraform is declarative provisioning: "create this VPC, this database, this DNS record". Ansible is procedural configuration: "install these packages, edit these files, restart these services". Many teams use both — Terraform for infrastructure, Ansible for host configuration. Pulumi and CloudFormation occupy the Terraform role. Choose by lifecycle, not by popularity.

What is drift and how do I handle it?

Drift is the difference between the declared state and the real state. It happens when someone edits a resource outside IaC (console, CLI, manual script). Detecting drift requires running a plan on a schedule and alerting on any unexpected diff. Handling it requires deciding, per case, whether to revert the drift or codify it — sometimes the manual change was the right one and the definition needs updating.

Does IaC only work for cloud?

No. IaC works for any infrastructure with an API: physical data centers, networking equipment, Kubernetes clusters, DNS providers, even SaaS configuration. The term is often associated with cloud because cloud APIs made the practice mainstream, but on-premises environments benefit from the same model.

What is the state file and why does it matter?

The state file maps declared resources to real resource IDs. Without it, the tool cannot know that aws_instance.web is the specific EC2 instance in production, so it cannot plan changes safely. Losing the state file means every resource has to be manually re-imported. The standard practice is a remote backend with locking (S3 + DynamoDB, GCS, Terraform Cloud) and versioning enabled.