Terraform lets you describe cloud infrastructure, such as servers, networks and storage, in text files. Running Terraform then creates or updates that infrastructure to match the files.
Why teams use it
- The same setup can be created again, exactly, in another environment.
- Changes are reviewed in code before they happen.
- The files act as a record of what exists.
The basic workflow
terraform init: prepare the folder and download providers.terraform plan: show what will change.terraform apply: make the changes.terraform destroy: remove what was created.
Be careful with state
Terraform keeps a state file that records what it manages. Store it safely and never edit it by hand. Teams usually keep it in shared remote storage.
A first exercise
Write a file that creates one small storage bucket, run plan and apply, then destroy it. Always clean up test resources.
Next step: see our cloud, AWS and DevOps course at ScholarLogic, or book a free demo class. A counsellor will share the fee and the next batch dates.
