terraform state listonly displays resources stored in the state filebut doesnot interact with the cloud provideror refresh the state.
terraform plan, terraform apply, and terraform destroycompare or modify the infrastructure, so theyrefresh the stateto ensure accuracy.
Official Terraform Documentation Reference:
terraform state list - HashiCorp Documentation
Contribute your Thoughts:
Chosen Answer:
This is a voting comment (?). You can switch to a simple comment. It is better to Upvote an existing comment if you don't have anything to add.
Submit