title: How to list resources when using remote state?
body: <p>I am using terraform 0.12.9 and state is saved on s3 bucket. I'd like to list all resources by <code>terraform state list</code>. Based on this document, <a href="https://www.terraform.io/docs/commands/state/list.html" rel="nofollow noreferrer">https://www.terraform.io/docs/commands/state/list.html</a>, it says <code>-state=path - Path to the state file. Defaults to "terraform.tfstate". Ignored when remote state is used.</code>. How can I pass the state file if it is on remote s3 bucket? </p>