medium10 pts · first answer countsterraforminfrastructure-as-code
Renaming a resource without recreating it
You rename aws_instance.web to aws_instance.app in your Terraform code, and plan now wants to destroy and recreate the server. How do you avoid that?
Discussion 0
Join free to post in the discussion.
Related questions
- What terraform plan doesCloud Engineer
- What a Terraform output doesCloud Engineer
- What OpenTofu isCloud Engineer
- Why remote state needs lockingCloud Engineer
- Avoiding downtime on forced replacementCloud Engineer
- Detecting drift from console changesCloud Engineer
- count vs for_each in TerraformCloud Engineer
- for_each keys unknown until applyCloud Engineer