File tree Expand file tree Collapse file tree 1 file changed +0
-23
lines changed
Expand file tree Collapse file tree 1 file changed +0
-23
lines changed Original file line number Diff line number Diff line change @@ -72,26 +72,3 @@ module "bulk-upload-metadata-processor-alarm-topic" {
7272
7373 depends_on = [module . bulk-upload-metadata-processor-lambda , module . sns_encryption_key ]
7474}
75-
76- resource "aws_lambda_permission" "bulk_upload_metadata_processor_lambda" {
77- statement_id = " AllowS3Invoke"
78- action = " lambda:InvokeFunction"
79- function_name = module. bulk-upload-metadata-processor-lambda . function_name
80- principal = " s3.amazonaws.com"
81- source_arn = module. ndr-bulk-staging-store . bucket_arn
82- }
83-
84- resource "aws_s3_bucket_notification" "bulk_upload_metadata_processor_lambda_trigger" {
85- bucket = module. ndr-bulk-staging-store . bucket_id
86-
87- lambda_function {
88- lambda_function_arn = module. bulk-upload-metadata-processor-lambda . lambda_arn
89- events = [" s3:ObjectCreated:*" ]
90- filter_prefix = " expedite/"
91- filter_suffix = " .pdf"
92- }
93-
94- depends_on = [
95- aws_lambda_permission . bulk_upload_metadata_processor_lambda
96- ]
97- }
You can’t perform that action at this time.
0 commit comments