🔥 3-day streak
HashiCorp Certified: Terraform Associate (004)101 / 150
Question 101 of 150
Your team refactored the Terraform configuration by moving an existing `aws_instance.web` resource into a new module named `frontend`. After running `terraform plan`, Terraform proposes to destroy the original instance and create a new one inside the module. You want to preserve the running EC2 instance and simply update the state to reflect the new address. Which command should you run?
Reviewed for accuracy · Report an issueNext question