TERRAFORM-ASSOCIATE-004 · Question #167
What does terraform import do?
The correct answer is A. Imports existing resources into the state file. The terraform import command is used to import existing infrastructure into your Terraform state. This command takes the existing resource and associates it with a resource defined in your Terraform configuration, updating the state file accordingly. It does not generate configur
Question
Options
- AImports existing resources into the state file
- BImports all infrastructure from a given cloud provider
- CImports a new Terraform module
- DImports clean copies of tainted resources
- ENone of the above
How the community answered
(37 responses)- A89% (33)
- B3% (1)
- D5% (2)
- E3% (1)
Explanation
The terraform import command is used to import existing infrastructure into your Terraform state. This command takes the existing resource and associates it with a resource defined in your Terraform configuration, updating the state file accordingly. It does not generate configuration for the resource, only the state.
Topics
Community Discussion
No community discussion yet for this question.