Taint resource for recreation

Mark resource to be destroyed and recreated on next apply

terraform taint 'aws_instance.web[0]'

tool
terraform43 commands
tags
terraform

More terraform commands

  • terraform state rm 'aws_instance.legacy'

    Remove a resource from state without destroying it in the cloud

  • terraform output -json | jq 'to_entries[] | {(.key): .value.value}'

    Print all outputs as compact JSON

  • terraform destroy -target='aws_instance.web' -auto-approve

    Destroy a single resource without full plan

  • terraform force-unlock <lock-id>

    Release a stuck state lock after a failed apply

  • terraform workspace new staging && terraform workspace select staging

    Create and activate a Terraform workspace

all 43 terraform commands