Skip to content

Commit

Permalink
fix: access function name
Browse files Browse the repository at this point in the history
Co-authored-by: Tyler Richey <richeyt@byu.edu>
  • Loading branch information
chill389cc and tylerrichey98 committed Apr 11, 2024
1 parent 3b8b5db commit 6e082e5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions iac/modules/app/log-analyzer-lambda.tf
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ resource "aws_lambda_function" "LogAnalyzerSorterFunc" {
resource "aws_lambda_permission" "LogAnalyzerSorterTriggerPermission" {
statement_id = "LogAnalyzerSorterTriggerPermission"
action = "lambda:InvokeFunction"
function_name = aws_lambda_function.LogAnalyzerSorterFunc.arn
function_name = aws_lambda_function.LogAnalyzerSorterFunc.function_name
principal = "s3.amazonaws.com"
# principal = data.aws_caller_identity.current.account_id # TODO figure this out
# principal = data.aws_caller_identity.current.account_id # TODO figure this out
source_arn = aws_s3_bucket.LogBucket.arn
}

Expand Down

0 comments on commit 6e082e5

Please sign in to comment.