Which command lists the addresses of every resource currently tracked in the Terraform state, without showing their attribute values?
- A.
terraform state show - B.
terraform providers - C.
terraform output - D.
terraform state list✓ Correct
Explanation
Option D is correct. terraform state list prints just the resource addresses in state (optionally filtered by a pattern, such as a module path or resource type), giving a quick inventory without the detail of individual attributes. Option A is incorrect — terraform state show requires one specific resource address and prints its full attribute detail, not a listing of all addresses. Option C is incorrect — terraform output prints declared output values, unrelated to the inventory of managed resources. Option B is incorrect — terraform providers reports which provider plugins the configuration requires, not which resources are in state.