Skip to content

Commit

Permalink
keep the ability to not map any device
Browse files Browse the repository at this point in the history
  • Loading branch information
next0262 committed Mar 16, 2022
1 parent 684081e commit 41c68c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/runners/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ resource "aws_launch_template" "runner" {
name = "${var.environment}-action-runner"

dynamic "block_device_mappings" {
for_each = var.block_device_mappings
for_each = var.block_device_mappings != null ? var.block_device_mappings : []
content {
device_name = lookup(block_device_mappings.value, "device_name", "/dev/xvda")

Expand Down

0 comments on commit 41c68c1

Please sign in to comment.