TA-002-P · Question #221
Which of the following state management command allow you to retrieve a list of resources that are part of the state file?
The correct answer is A. terraform state list. The terraform state list command is used to list resources within a Terraform state. Usage: terraform state list [options] [address...] The command will list all resources in the state file matching the given addresses (if any). If no addresses are given, all resources are…
Question
Which of the following state management command allow you to retrieve a list of resources that are part of the state file?
Options
- Aterraform state list
- Bterraform state view
- Cterraform view
- Dterraform list
How the community answered
(32 responses)- A88% (28)
- B6% (2)
- C3% (1)
- D3% (1)
Explanation
The terraform state list command is used to list resources within a Terraform state. Usage: terraform state list [options] [address...] The command will list all resources in the state file matching the given addresses (if any). If no addresses are given, all resources are listed.
Topics
Community Discussion
No community discussion yet for this question.