DevOps · interactive
Terraform: plan and apply
You describe the infrastructure you want. Terraform compares it with what exists and prints a plan of exactly what it will create, change or destroy. Nothing happens until you apply. Make a change and read the plan.
$ terraform plan
aws_instance.web no changes
aws_db_instance.main no changes
+ aws_s3_bucket.assets will be created
bucket = "shop-assets"
Plan: 1 to add, 0 to change, 0 to destroy.
A new block in the config with nothing in state: Terraform will create it.
What changed
Step 1 of 4 · read left to right
In production
Tools and technologies
Infrastructure as code tools all follow plan, review, apply.
Not tied to one language — use these names when you search docs or design a system.