Skip to content

Commit

Permalink
Modify the function name of the (aws_lambda_permission) resource
Browse files Browse the repository at this point in the history
  • Loading branch information
Tolu-SourceFuse committed Feb 29, 2024
1 parent dc7c19b commit 844187d
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 @@ -286,7 +286,7 @@ resource "aws_lambda_permission" "current_version_triggers" {
resource "aws_lambda_permission" "unqualified_alias_triggers" {
for_each = { for k, v in var.allowed_triggers : k => v if local.create && var.create_function && !var.create_layer && var.create_unqualified_alias_allowed_triggers }

function_name = aws_lambda_function.this[0].function_name
function_name = "arn:aws:lambda:${data.aws_region.current.name}:${data.aws_caller_identity.current.account_id}:function:${aws_lambda_function.this[0].function_name}"

statement_id = try(each.value.statement_id, each.key)
action = try(each.value.action, "lambda:InvokeFunction")
Expand Down

0 comments on commit 844187d

Please sign in to comment.