Month End Sale Limited Time 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: simple70

HashiCorp Certified: Terraform Associate (004) (HCTA0-004) Terraform-Associate-004 Question # 51 Topic 6 Discussion

HashiCorp Certified: Terraform Associate (004) (HCTA0-004) Terraform-Associate-004 Question # 51 Topic 6 Discussion

Terraform-Associate-004 Exam Topic 6 Question 51 Discussion:
Question #: 51
Topic #: 6

You modified your Terraform configuration to fix a typo in the resource ID by renaming it from photoes to photos. What configuration will you add to update the resource ID in state without destroying the existing resource?

Original configuration:

resource "aws_s3_bucket" "photoes" {

bucket_prefix = "images"

}

Updated configuration:

resource "aws_s3_bucket" "photos" {

bucket_prefix = "images"

}


A.

moved {

from = aws_s3_bucket.photoes

to = aws_s3_bucket.photos

}


B.

moved {

bucket.photoes = aws_s3_bucket.photos

}


C.

moved {

aws_s3_bucket.photoes = aws_s3_bucket.photos

}


D.

None. Terraform will automatically update the resource ID.


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.