Notifications
Clear all
Topic starter
Which of the following state management command allow you to retrieve a list of resources that are part of the state file?
- A . terraform state list
B. terraform state view
C. terraform view
D. terraform list
Suggested Answer: A
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. https://www.terraform.io/docs/commands/state/list.html
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. https://www.terraform.io/docs/commands/state/list.html
Posted : 11/11/2022 11:47 am