Show state for a resource
Inspect Terraform state attributes for a single resource
terraform state show module.path.resource_type.name
More terraform commands
-
terraform state mv old.address new.addressRename/reorganize resource without destroying and recreating it
-
terraform workspace listShow all workspaces; current one 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