Terraform Infrastructure as Code
Terraform is a tool from HashiCorp for securely creating, modifying, and versioning infrastructure. Terraform uses declarative configuration to describe the desired state of your infrastructure and automatically plans and executes changes to achieve that state.
Automated: Automated Creation and Management
Speed of Deployment
Consistency across environments
The Terraform Lifecycle
Variables (variables.tf)
Store the state file in a remote repository for collaboration.
Frequently asked questions
What are workspaces used for?
Workspaces allow you to manage multiple environments (e.g., development, staging, production) within a single Terraform project, ensuring consistency and reducing duplication.
Why is it important to run 'terraform plan' before 'terraform apply'?
'Terraform Plan' shows you the changes that will be made to your infrastructure *before* they are actually applied, allowing you to review and confirm the proposed modifications.
What does Terraform state store about?
The Terraform state file stores information about the *actual* infrastructure and its relationships. This allows Terraform to know what resources already exist and how they are connected, enabling it to intelligently plan and apply changes.
▶ Try it live
Everything above runs in your browser — open Hash Function Avalanche Visualizer and change the parameters while it is running. Nothing is installed, nothing is uploaded, the whole model lives in one tab.