Difference between revisions of "Terraform show"

From wikieduonline
Jump to navigation Jump to search
Tags: Mobile web edit, Mobile edit
Line 2: Line 2:
 
<code>terraform show</code> command provides human-readable output from a [[Terraform state files|state]] or [[plan file]].
 
<code>terraform show</code> command provides human-readable output from a [[Terraform state files|state]] or [[plan file]].
 
* https://www.terraform.io/docs/cli/commands/show.html
 
* https://www.terraform.io/docs/cli/commands/show.html
 +
 +
* <code>[[terraform show]]</code>
 +
* <code>[[terraform show -no-color]]</code>
 
* <code>[[terraform show --help]]</code>
 
* <code>[[terraform show --help]]</code>
  

Revision as of 14:12, 15 March 2023

terraform show command provides human-readable output from a state or plan file.

 terraform init -> terraform plan ->  terraform apply -> terraform show

Examples

RDS

tf show | grep .rds.amazonaws.com
terraform show
No state.
terraform show
(no output)
terragrunt show

Examples with errors

terraform show
╷
│ Error: Module not installed
│
│   on /path_to_file/main.tf line 3:
│    3: module "compute" {
│
│ This module is not yet installed. Run "terraform init" to install all modules required by this configuration.
╵
Error: Backend initialization required, please run "terraform init"


Error: failed to read the give file as a state or plan file


Changelog

  • terraform show: the JSON plan output now indicates which state values are sensitive. (#28889)

Related terms

See also

Advertising: