We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e413d66 commit 33fc32eCopy full SHA for 33fc32e
modules/runners/main.tf
@@ -55,7 +55,7 @@ resource "aws_launch_template" "runner" {
55
name = "${var.environment}-action-runner"
56
57
dynamic "block_device_mappings" {
58
- for_each = [var.block_device_mappings]
+ for_each = var.block_device_mappings != null ? [var.block_device_mappings] : []
59
content {
60
device_name = lookup(block_device_mappings.value, "device_name", "/dev/xvda")
61
0 commit comments