Difference between revisions of "Terraform state list"

From wikieduonline
Jump to navigation Jump to search
Line 1: Line 1:
 
{{lowercase}}
 
{{lowercase}}
*<code>[[terraform state]] list</code>
+
* <code>[[terraform state]] list</code>
*<code>[[aws_instance]].MYexample</code>
+
* <code>[[aws_instance]].MYexample</code>
  
*<code>[[terraform state show aws_instance.MYexample]]</code>
+
* <code>[[terraform state show aws_instance.MYexample]]</code>
 +
 +
terraform state list
 +
module.[[alb]].aws_lb.this[0]
 +
module.[[compute]].aws_instance.this[0]
 +
module.compute.aws_instance.this[1]
  
  

Revision as of 14:13, 18 October 2021

terraform state list
module.alb.aws_lb.this[0]
module.compute.aws_instance.this[0]
module.compute.aws_instance.this[1]


terraform state list
No state file was found! 

State management commands require a state file. Run this command
in a directory where Terraform has been run or use the -state flag
to point the command to a specific state location.

Related commands

See also

Advertising: