Terraform show command

Why terraform show command picks a terraform.tf.state instead of main.tf. As in the warning it displayed doesn’t support plain format. But what is the reason to not support plain text format? Any expert can share their views on it.

Any slack channel is available of terraform official.

Because the command is used to inspect state (remote or in a terraform.tfstate file) or a plan-file, not a configuration like main.tf.

2 Likes

Hmm that makes sense. Thank you.