terraform show display?You run terraform show after applying your configuration. What information will it display?
Think about what Terraform keeps after applying changes.
terraform show outputs the current state of your infrastructure as Terraform understands it, including all resource details.
You want to inspect the Terraform state programmatically. Which command will output the state in JSON format?
Look for the command that shows state details in JSON.
terraform show -json outputs the entire state in JSON format for programmatic use.
terraform show on a remote backend state?You have configured Terraform to use a remote backend for state storage. What happens when you run terraform show?
Think about how Terraform accesses remote state when inspecting it.
Terraform fetches the remote state and then displays it locally when running terraform show.
terraform show?You share the output of terraform show with your team. What security risk might this pose?
Consider what kind of information the state file contains.
The Terraform state can contain sensitive values such as secrets or credentials, so sharing its output can leak this data.
You want to see the current value of a specific resource attribute in the Terraform state. Which command and option combination is correct?
Think about the command designed to show detailed info about one resource in state.
terraform state show displays detailed attributes of a single resource from the state file.