mediumStudy question · answer published in Terraform interview questions, so no pointsterraforminfrastructure-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
- Why define infrastructure as codeCloud Engineer
- Catching misconfigurations in TerraformCloud Engineer