Interview Prep/Terraform/Rapid-Fire Commands

Force the replacement of a single resource?

BeginnerProductionRapid-Fire Commands
Answer
terraform apply -replace='aws_instance.web["blue"]'

It shows the replacement in the plan for approval. This supersedes terraform taint.

All Terraform questions

More on Rapid-Fire Commands