Recall & Review
beginner
What is the main purpose of bulk import strategies in Terraform?Bulk import strategies help bring many existing cloud resources under Terraform management efficiently, saving time and reducing manual work.Click to reveal answer
intermediate
How does the 'terraform import' command work in bulk import scenarios?The 'terraform import' command links an existing resource to a Terraform resource block, but it works one resource at a time, so scripts or loops are used to import many resources.Click to reveal answer
beginner
Why is scripting important in bulk import strategies?Scripting automates repetitive import commands, making it faster and less error-prone to import many resources at once.Click to reveal answer
intermediate
What is a common challenge when performing bulk imports in Terraform?
Ensuring the Terraform configuration matches the existing resources exactly to avoid drift or errors after import.
Click to reveal answer
beginner
Name one best practice for bulk importing resources into Terraform.
Test imports on a small set of resources first, verify the state, then scale up to bulk import to avoid mistakes.Click to reveal answer
What does the 'terraform import' command do?
✗ Incorrect
'terraform import' connects existing cloud resources to Terraform's state without creating or deleting them.
Which method helps automate bulk imports in Terraform?
✗ Incorrect
Scripts automate running many 'terraform import' commands, making bulk import efficient.
Why should you verify Terraform configuration before bulk import?
✗ Incorrect
Matching configuration prevents errors and drift after import.
What is a risk of bulk importing without testing first?
✗ Incorrect
Testing helps avoid mistakes that can corrupt Terraform state or import wrong resources.
Which of these is NOT a bulk import strategy?
✗ Incorrect
Terraform Cloud does not provide automatic bulk import; automation is done via scripts and configuration.
Explain how you would perform a bulk import of cloud resources into Terraform.
Think about commands, automation, configuration, and testing.
You got /4 concepts.
What are the key challenges and best practices when doing bulk imports in Terraform?
Consider risks and how to prevent them.
You got /4 concepts.