🔥 3-day streak
HashiCorp Certified: Terraform Associate (004)112 / 150
Question 112 of 150
Your team refactored a Terraform configuration, renaming an existing resource block from `aws_db_instance.primary` to `aws_db_instance.production`. When you run `terraform plan`, Terraform proposes to destroy the old database and create a new one — an unacceptable outcome for a production RDS instance. Which command correctly updates the state so that the existing database is preserved and associated with the new resource address?
Reviewed for accuracy · Report an issueNext question