Skip to content

Commit ef15469

Browse files
PRMT-537- bulk upload lambda source mapping is enabled by default on sandboxes (#362)
1 parent 596d28b commit ef15469

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

infrastructure/lambda-bulk-upload.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ module "bulk-upload-lambda" {
5858
resource "aws_lambda_event_source_mapping" "bulk_upload_lambda" {
5959
event_source_arn = module.sqs-lg-bulk-upload-metadata-queue.sqs_arn
6060
function_name = module.bulk-upload-lambda.lambda_arn
61-
enabled = false # Disabled by default; scheduler lambda will control
61+
enabled = local.is_sandbox ? true : false # Disabled by default; scheduler lambda will control
6262
batch_size = 10
6363
scaling_config {
6464
maximum_concurrency = local.bulk_upload_lambda_concurrent_limit

0 commit comments

Comments
 (0)