Show output values

Print all outputs as JSON; useful for pipeline scripting

terraform output -json

tool
terraform43 commands
tags
terraform

More terraform commands

  • terraform destroy -target=module.vpc.aws_vpc.main

    Destroy a single resource without touching everything else

  • terraform taint module.eks.aws_instance.node

    Mark resource for replacement on next apply

  • terraform state rm module.path.resource_type.name

    Forget a resource from state without destroying it in cloud

  • terraform refresh -var-file=prod.tfvars

    Update state file to match real infrastructure

  • terraform graph | dot -Tsvg > graph.svg

    Visualize resource dependency graph (requires Graphviz)

all 43 terraform commands