Show dependency graph terraform
Render resource dependency graph as SVG (requires graphviz)
terraform graph | dot -Tsvg > graph.svg && open graph.svg
more terraform
all 43 commands →
List providers with versions
terraform providers lock -platform=linux_amd64 -platform=darwin_arm64
Move resource in state
terraform state mv 'aws_instance.web' 'aws_instance.app'
Remove orphan from state
terraform state rm 'aws_s3_bucket.legacy'
Inspect single resource state
terraform state show 'module.vpc.aws_subnet.private[0]'
Grep the state list
terraform state list | grep -i 'aws_iam'