Difference between revisions of "Terraform state list"
Jump to navigation
Jump to search
Line 4: | Line 4: | ||
*<code>[[terraform state show aws_instance.MYexample]]</code> | *<code>[[terraform state show aws_instance.MYexample]]</code> | ||
+ | |||
+ | |||
+ | |||
+ | 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 == | == Related commands == |
Revision as of 12:32, 18 October 2021
terraform state list
aws_instance.MYexample
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
terraform
[untaint | fmt
|apply
|show
|state
|init | plan | console | output
|validate
|destroy
|debug
|import
|providers
|get
|graph
|workspaces
|resource
|login
|-var-file
|state mv
|state pull
|state push
|state replace-provider
|state rm
|force-unlock
|env
|tfe
|--version
|remote-exec
|delete on termination
| deprecated commands |terraform --help
]
Advertising: