Skip to content

Commit

Permalink
Fix device_name value in dynamic block.
Browse files Browse the repository at this point in the history
  • Loading branch information
zhiguangwang committed Jun 25, 2019
1 parent ab29dc8 commit 5bef1c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/nomad-cluster/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ resource "aws_launch_configuration" "launch_configuration" {
dynamic "ebs_block_device" {
for_each = var.ebs_block_devices
content {
device_name = ebs_block_device.value
device_name = ebs_block_device.value.device_name
snapshot_id = lookup(ebs_block_device.value, "snapshot_id", null)
volume_type = lookup(ebs_block_device.value, "volume_type", null)
volume_size = lookup(ebs_block_device.value, "volume_size", null)
Expand Down

0 comments on commit 5bef1c0

Please sign in to comment.