Skip to content
This repository was archived by the owner on Jan 16, 2025. It is now read-only.

Commit 33fc32e

Browse files
HankierGrzegorz Cwiklinski
and
Grzegorz Cwiklinski
authored
Add possibility to not create ebs (#1807)
Co-authored-by: Grzegorz Cwiklinski <[email protected]@smartpension.co.uk>
1 parent e413d66 commit 33fc32e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: modules/runners/main.tf

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ resource "aws_launch_template" "runner" {
5555
name = "${var.environment}-action-runner"
5656

5757
dynamic "block_device_mappings" {
58-
for_each = [var.block_device_mappings]
58+
for_each = var.block_device_mappings != null ? [var.block_device_mappings] : []
5959
content {
6060
device_name = lookup(block_device_mappings.value, "device_name", "/dev/xvda")
6161

0 commit comments

Comments
 (0)