Show output values
Print all outputs as JSON; useful for pipeline scripting
terraform output -json
More terraform commands
-
terraform destroy -target=module.vpc.aws_vpc.mainDestroy a single resource without touching everything else
-
terraform taint module.eks.aws_instance.nodeMark resource for replacement on next apply
-
terraform state rm module.path.resource_type.nameForget a resource from state without destroying it in cloud
-
terraform refresh -var-file=prod.tfvarsUpdate state file to match real infrastructure
-
terraform graph | dot -Tsvg > graph.svgVisualize resource dependency graph (requires Graphviz)