TERRAFORM-ASSOCIATE-004 · Question #118
Which of the following commands would you use to access all of the attributes and details of a resource managed by Terraform?
The correct answer is B. terraform state show `provider_type.name'. The terraform state show command allows you to access all of the attributes and details of a resource managed by Terraform. You can use the resource address (e.g. provider_type.name) as an argument to show the information about a specific resource. The terraform state list…
Question
Options
- Aterraform state list `provider_type.name'
- Bterraform state show `provider_type.name'
- Cterraform get `provider_type.name'
- Dterraform state list
How the community answered
(33 responses)- A3% (1)
- B94% (31)
- D3% (1)
Explanation
The terraform state show command allows you to access all of the attributes and details of a resource managed by Terraform. You can use the resource address (e.g. provider_type.name) as an argument to show the information about a specific resource. The terraform state list command only shows the list of resources in the state, not their attributes. The terraform get command downloads and installs modules needed for the configuration. It does not show any information about resources.
Topics
Community Discussion
No community discussion yet for this question.