Skip to content

Commit

Permalink
fix: ebs device name
Browse files Browse the repository at this point in the history
  • Loading branch information
zahornyak committed Sep 9, 2024
1 parent 2d05a23 commit 9b92e93
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ resource "aws_launch_template" "as_template" {
dynamic "block_device_mappings" {
for_each = var.root_block_device
content {
device_name = "/dev/xvda"
device_name = try(block_device_mappings.value.device_name, "/dev/xvda")

ebs {
delete_on_termination = try(block_device_mappings.value.delete_on_termination, null)
Expand Down

0 comments on commit 9b92e93

Please sign in to comment.