Recall & Review
beginner
What does 'terraform import' do?
It brings existing infrastructure resources into Terraform's management by adding them to the state file without changing the actual resource.
Click to reveal answer
beginner
Why is verifying the imported state important?
To ensure Terraform's state matches the real resource settings, preventing accidental changes or deletions during future applies.
Click to reveal answer
intermediate
How can you verify the imported resource state?
By running 'terraform plan' after import to see if Terraform wants to make any changes, indicating differences between state and real resource.Click to reveal answer
intermediate
What should you do if 'terraform plan' shows changes after import?
Review the differences carefully. Update your Terraform configuration to match the real resource or adjust the resource to match the configuration before applying.
Click to reveal answer
beginner
Can 'terraform import' create new resources?
No, it only adds existing resources to the state. It does not create or modify resources during import.
Click to reveal answer
What command do you use to bring an existing resource into Terraform's state?
✗ Incorrect
'terraform import' adds existing resources to the Terraform state without changing them.
After importing a resource, which command helps verify if Terraform's state matches the real resource?
✗ Incorrect
'terraform plan' shows any differences between the state and real resources.
If 'terraform plan' shows changes after import, what should you do?
✗ Incorrect
You should align your configuration and real resource to avoid unintended changes.
Does 'terraform import' modify the actual resource during import?
✗ Incorrect
'terraform import' only updates the state file, not the real resource.
What is the main risk if you skip verifying the imported state?
✗ Incorrect
Without verification, Terraform may apply unwanted changes causing resource loss or misconfiguration.
Explain the process and importance of verifying Terraform state after importing a resource.
Think about how Terraform tracks resources and why state accuracy matters.
You got /4 concepts.
Describe what happens if you run 'terraform import' but do not verify the state before applying changes.
Consider the consequences of unmanaged differences.
You got /4 concepts.