Skip to content

Commit

Permalink
Add possibility to not create ebs (philips-labs#1807)
Browse files Browse the repository at this point in the history
Co-authored-by: Grzegorz Cwiklinski <grzegorz.cwiklinski@grzegorz.cwiklinski@smartpension.co.uk>
  • Loading branch information
Hankier and Grzegorz Cwiklinski authored Mar 10, 2022
1 parent e413d66 commit 33fc32e
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 33fc32e

Please sign in to comment.