TERRAFORM-ASSOCIATE-004 · Question #51
Which of the following command would be use to access all of the attributes and details of a resource managed by Terraform?
The correct answer is A. Terraform state show ` provider_type_name. The terraform state show <resource_address> command displays all attributes and metadata of a specific resource tracked in the Terraform state file (e.g., terraform state show aws_instance.my_vm). This gives you a detailed view of every attribute Terraform knows about that resour
Question
Options
- ATerraform state show ` provider_type_name
- BTerraform state list
- CTerraform get provider_type_name
- DTerraform state list provider_type_name
How the community answered
(31 responses)- A87% (27)
- B3% (1)
- C6% (2)
- D3% (1)
Explanation
The terraform state show <resource_address> command displays all attributes and metadata of a specific resource tracked in the Terraform state file (e.g., terraform state show aws_instance.my_vm). This gives you a detailed view of every attribute Terraform knows about that resource. In contrast, terraform state list only returns a list of resource addresses without any attribute details, and terraform get is used for downloading modules - not inspecting state.
Topics
Community Discussion
No community discussion yet for this question.