Skip to content

Commit

Permalink
fix: variables
Browse files Browse the repository at this point in the history
  • Loading branch information
amanverma678 committed Dec 5, 2024
1 parent 1ed7b29 commit ae92ee6
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions node_group/aws_managed/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,13 @@ resource "aws_launch_template" "this" {
for_each = var.instance_market_options != null ? [var.instance_market_options] : []
content {}

dynamic "spot_options" {
for_each = instance_market_options.value.spot_options != null ? [instance_market_options.value.spot_options] : []
content {}
dynamic "spot_options" {
for_each = instance_market_options.value.spot_options != null ? [instance_market_options.value.spot_options] : []
content {
max_price = spot_options.value.max_price
}
}
}
}

dynamic "block_device_mappings" {
for_each = var.block_device_mappings
Expand Down

0 comments on commit ae92ee6

Please sign in to comment.