Notifications
Clear all
Topic starter
04/07/2022 3:18 am
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
Suggested Answer: A
Explanation:
Reference: https://www.terraform.io/docs/configuration-0-11/interpolation.html
Explanation:
Reference: https://www.terraform.io/docs/configuration-0-11/interpolation.html