Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
zahornyak committed Sep 19, 2023
1 parent 45b533b commit 0ee1d0b
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 @@ -16,7 +16,7 @@ resource "aws_ssm_parameter" "this" {
}

resource "aws_ssm_parameter" "unlocked" {
for_each = { for k, v in var.parameters : k => v if var.unlocked || try(v.unlocked, false) == true && var.data && try(v.data, false) == false }
for_each = { for k, v in var.parameters : k => v if var.unlocked || try(v.unlocked, false) == true && !var.data && try(v.data, false) == false }

name = var.parameter_prefix != null ? "${var.parameter_prefix}${lookup(each.value, "name", null) == null ? each.key : lookup(each.value, "name")}" : lookup(each.value, "name", null) == null ? each.key : lookup(each.value, "name")
type = lookup(each.value, "type", "SecureString")
Expand Down

0 comments on commit 0ee1d0b

Please sign in to comment.