Pre-Winter Sale Special Limited Time 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: force70

HashiCorp Certified: Terraform Associate (004) (HCTA0-004) Terraform-Associate-004 Question # 17 Topic 2 Discussion

HashiCorp Certified: Terraform Associate (004) (HCTA0-004) Terraform-Associate-004 Question # 17 Topic 2 Discussion

Terraform-Associate-004 Exam Topic 2 Question 17 Discussion:
Question #: 17
Topic #: 2

You corrected a typo in a resource name, changing it from aws_s3_bucket.photoes to aws_s3_bucket.photos. You want to update the Terraform state so that the existing resource is recognized under the new name, without destroying and recreating it. Which configuration should you use?


A.

Remove the old resource from your configuration and re-import it.


B.

Run terraform apply -refresh-only.


C.

Do nothing — Terraform will automatically update the state.


D.

Add a moved block to your configuration.


Get Premium Terraform-Associate-004 Questions

Contribute your Thoughts:


Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.