Câu 47: Terraform Associate 004: HashiCorp Certified: Terraform Associate (004)
A resource block is shown in the Exhibit space of this page.resource “aws_instance” “web” {count = 2name = “terraform-${count.index}”}How do you reference the name value of the second instance of this resource?
Nội dung câu hỏi
A resource block is shown in the Exhibit space of this page.resource “aws_instance” “web” {count = 2name = “terraform-${count.index}”}How do you reference the name value of the second instance of this 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. aws_instance.web.*.name
- B. aws_instance.web[2].name
- C. element(aws_instance.web, 2)
- D. aws_instance.web[1].name — đáp án hiện tại
- E. aws_instance.web[1]
Cộng đồng
0 bình luận công khai. Tên thành viên được ẩn một phần.
Chưa có bình luận. Mở giao diện tương tác để bắt đầu thảo luận.