Skip to content

Commit

Permalink
add allowed triggers
Browse files Browse the repository at this point in the history
  • Loading branch information
Joel Balcaen committed Apr 5, 2024
1 parent 48beea4 commit bde86d2
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions lambdas/rich_pdf_ingestion/lambda.tf
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ module "lambda_function_container_image" {
"logs:PutLogEvents",
]
}

s3 = {
effect = "Allow"
actions = [
Expand All @@ -60,11 +60,20 @@ module "lambda_function_container_image" {
"s3-object-lambda:List*",
"s3-object-lambda:WriteGetObjectResponse"
]

resources = [
var.ses_bucket_arn,
"${var.ses_bucket_arn}/*"
]
}
}

create_current_version_allowed_triggers = false

allowed_triggers = {
s3 = {
principal = "s3.amazonaws.com"
source_arn = var.ses_bucket_arn
}
}
}

0 comments on commit bde86d2

Please sign in to comment.