Posted by: Pdfprep
Post Date: February 2, 2021
What Terraform command can be used to inspect the current state file?
A . terraform inspect
B . terraform show
C . terraform read
D . terraform state
Answer: B
Explanation:
The terraform show command is used to provide human-readable output from a state or plan file. This can be used to inspect a plan to ensure that the planned operations are expected, or to inspect the current state as Terraform sees it. Machine-readable output can be generated by adding the -json command-line flag.
Note: When using the -json command-line flag, any sensitive values in Terraform state will be displayed in plain text.
Leave a Reply