Import existing resource terraform
Bring an already-existing resource under Terraform control
terraform import module.path.resource_type.name <remote-id>
more terraform
all 43 commands →
Show state for a resource
terraform state show module.path.resource_type.name
Move resource in state
terraform state mv old.address new.address
Workspace list
terraform workspace list
Create and switch workspace
terraform workspace new staging && terraform workspace select staging
Validate configuration
terraform validate