Câu 79: Terraform Associate: HashiCorp Certified
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 p…
Nội dung câu hỏi
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?
Các lựa chọn
Đáp án được giữ gọn theo nhãn A, B, C, D trong phần bình chọn tương tác.
- A. terraform apply rm aws_instance.ubuntu[1]
- B. terraform state rm aws_instance.ubuntu[1] — đáp án hiện tại
- C. terraform plan rm aws_instance.ubuntu[1]
- D. terraform delete aws_instance.ubuntu[1]
Cộng đồng
0 bình luận công khai. Tên thành viên được ẩn một phần.