Skip to content

Commit a4a943c

Browse files
it-praktykWojciech Ściesiński
and
Wojciech Ściesiński
authored
Correct how the volume_id is selected - Fix #165 (#171)
Co-authored-by: Wojciech Ściesiński <[email protected]>
1 parent 299abfb commit a4a943c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,6 @@ resource "aws_ebs_volume" "default" {
191191
resource "aws_volume_attachment" "default" {
192192
count = local.volume_count
193193
device_name = var.ebs_device_name[count.index]
194-
volume_id = one(aws_ebs_volume.default[*].id[count.index])
194+
volume_id = aws_ebs_volume.default[count.index].id
195195
instance_id = one(aws_instance.default[*].id)
196196
}

0 commit comments

Comments
 (0)