Show a resource in state
Show the state attributes of one resource
terraform state show module.path.resource_type.name
More terraform commands
-
terraform state mv old.address new.addressRename or move a resource without destroying and recreating it
-
terraform workspace listShow all workspaces; the current one is marked with *
-
terraform workspace new staging && terraform workspace select stagingCreate a new workspace and switch to it
-
terraform validateCheck Terraform configuration for syntax and consistency errors
-
terraform fmt -recursiveAuto-format all .tf files recursively