Exam4Training

How would you reference the "name" value of the second instance of this fictitious resource?

How would you reference the "name" value of the second instance of this fictitious resource?

A . element(aws_instance.web, 2)
B . aws_instance.web[1].name
C . aws_instance.web[1]
D . aws_instance.web[2].name
E . aws_instance.web.*.name

Answer: A

Explanation:

Reference: https://www.terraform.io/docs/configuration-0-11/interpolation.html

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