Skip to content

Commit

Permalink
fix: Qualifiers in event invoke config (#368)
Browse files Browse the repository at this point in the history
  • Loading branch information
sindrig authored Oct 27, 2022
1 parent fa92a39 commit 93e1dc3
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 @@ -193,7 +193,7 @@ locals {
}

resource "aws_lambda_function_event_invoke_config" "this" {
for_each = { for k, v in local.qualifiers : k => v if local.create && var.create_function && !var.create_layer && var.create_async_event_config }
for_each = { for k, v in local.qualifiers : k => v if v != null && local.create && var.create_function && !var.create_layer && var.create_async_event_config }

function_name = aws_lambda_function.this[0].function_name
qualifier = each.key == "current_version" ? aws_lambda_function.this[0].version : null
Expand Down

0 comments on commit 93e1dc3

Please sign in to comment.