How would you refer...
 
Notifications
Clear all

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

1 Posts
1 Users
0 Likes
221 Views
 Tuan
(@shippertuan)
Noble Member
Joined: 2 years ago
Posts: 713
Topic starter  

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

Show Answer Hide Answer

Suggested Answer: A

Explanation:

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

   
Quote

Latest HashiCorp TA-002-P Dumps Valid Version

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