Interview Prep/Real-World Interview/Terraform and Ansible

How do you target or replace a single resource?

IntermediateConceptTerraform and Ansible
Answer

-replace supersedes terraform taint. Use -target only in emergencies.

terraform apply -replace="aws_instance.web"
terraform plan -target="module.vpc"
All Real-World Interview questions Roadmap: Interview readiness

More on Terraform and Ansible