Flashcards · Terraform · Free
Terraform flashcards, generated for you.
Example Terraform study cards to learn from right now — then generate a full set from your own notes (plus a practice quiz) and export to Quizlet or Anki. Free, no account needed.
Example Terraform flashcards
What does 'terraform init' do?
Initializes a Terraform working directory by downloading required provider plugins, setting up backend configuration, and creating a .terraform directory.
What is the purpose of terraform plan?
Shows a preview of infrastructure changes that will be applied without making actual changes. Outputs an execution plan showing resources to be created, modified, or destroyed.
What command applies Terraform configuration changes to infrastructure?
terraform apply - executes the changes defined in Terraform configuration files after confirming the proposed changes.
What does 'terraform fmt' do?
Automatically formats Terraform configuration files to follow standard style conventions for consistency across projects.
What is the terraform state file and why is it critical?
A JSON file (terraform.tfstate) that tracks real-world resource metadata and maps resources to infrastructure. It's essential for Terraform to know what it manages and detect drift.
How do you reference an output from one module in another module?
Use module.<module_name>.<output_name> in the consuming module. Ensure the source module declares the output in its outputs.tf file.
What is terraform validate and when should you use it?
Validates syntax and consistency of Terraform configuration files without accessing remote services or state. Run before plan to catch errors early.
Explain the difference between count and for_each meta-arguments.
count uses numeric indexing (count.index) and is simpler but less stable when reordering. for_each uses map/set keys, preserves identity during changes, and is preferred for most use cases.
What is terraform taint and when would you use it?
Marks a resource for destruction and recreation on next apply without actually destroying it immediately. Use when a resource needs replacement due to corruption or misconfiguration.
What is a Terraform workspace and how do you use it?
Separate state files within the same configuration for managing multiple environments (dev, staging, prod). Switch with 'terraform workspace select <name>' to isolate infrastructure per environment.
Make your own Terraform study set
Flashcards for related topics
Studying Terraform to build with AI? MindloomHQ turns it into real skills — structured courses, agent projects, and certificates.
Explore MindloomHQ →