Exam4Training

What command should be used to tell Terraform to no longer manage the resource?

A fellow developer on your team is asking for some help in refactoring their Terraform code. As part of their application’s architecture, they are going to tear down an existing deployment managed by Terraform and deploy

new. However, there is a server resource named aws_instance.ubuntu[1] they would like to keep to perform some additional analysis.

What command should be used to tell Terraform to no longer manage the resource?
A . terraform apply rm aws_instance.ubuntu[1]
B . terraform state rm aws_instance.ubuntu[1]
C . terraform plan rm aws_instance.ubuntu[1]
D . terraform delete aws_instance.ubuntu[1]

Answer: B

Latest TA-002-P Dumps Valid Version with 324 Q&As

Latest And Valid Q&A | Instant Download | Once Fail, Full Refund

Exit mobile version