terraform show

From wikieduonline
Revision as of 08:23, 14 September 2022 by Ant (talk | contribs) (→‎See also)
Jump to navigation Jump to search

terraform show command provides human-readable output from a state or plan file. https://www.terraform.io/docs/cli/commands/show.html

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

Examples

terraform show
No state.
terraform show
(no output)

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"


Changelog

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

Related terms

See also

Advertising: