HashiCorp
TERRAFORM-ASSOCIATE-003 · Question #11
How would you reference the volume IDs associated with the ebs_block_device blocks in this configuration?
The correct answer is D. aws_instance.example-ebs_block_device.*.volume_id. This is the correct way to reference the volume IDs associated with the ebs_block_device blocks in this configuration, using the splat expression syntax. The other options are either invalid or
Tools for Test Analysts
Question
How would you reference the volume IDs associated with the ebs_block_device blocks in this configuration?
Exhibit
Options
- Aaws_instance.example.ebs_block_device[sda2,sda3).volume_id
- Baws_lnstance.example.ebs_block_device.[*].volume_id
- Caws_lnstance.example.ebs_block_device.volume_ids
- Daws_instance.example-ebs_block_device.*.volume_id
How the community answered
(64 responses)- A5% (3)
- B3% (2)
- C13% (8)
- D80% (51)
Explanation
This is the correct way to reference the volume IDs associated with the ebs_block_device blocks in this configuration, using the splat expression syntax. The other options are either invalid or
Topics
#Terraform#splat expression#AWS instance#ebs_block_device
Community Discussion
No community discussion yet for this question.
