Skip to content

Commit

Permalink
fix: reinstate sqs triggers
Browse files Browse the repository at this point in the history
  • Loading branch information
mogusbi committed Dec 22, 2024
1 parent 0f60dc9 commit 93fe994
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 16 deletions.
7 changes: 3 additions & 4 deletions applications/accounts/data/serverless.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,9 @@ functions:

ClearAttachments:
handler: src/clear-attachments.handler
# events:
# - sqs:
# arn: !ImportValue ${self:provider.stage}-AntiVirusFailureQueueArn
# batchSize: 20
events:
- sqs:
arn: !ImportValue ${self:provider.stage}-AntiVirusFailureQueueArn
role: DataLambdaFunctionRole
environment:
BUCKET: !ImportValue ${self:provider.stage}-StorageUploadBucket
Expand Down
7 changes: 3 additions & 4 deletions applications/accounts/queue/serverless.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,9 @@ functions:
DeleteTrigger:
handler: src/triggers/delete.handler
role: TriggerLambdaFunctionRole
# events:
# - sqs:
# arn: !GetAtt AccountsQueue.Arn
# batchSize: 20
events:
- sqs:
arn: !GetAtt AccountsQueue.Arn
environment:
SENTRY_DSN: ${env:SENTRY_DSN}
STATE_MACHINE_ARN: !Ref DeleteCompanyDataStateMachine
Expand Down
7 changes: 3 additions & 4 deletions applications/accounts/storage/serverless.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,9 @@ custom:
functions:
ProcessDelete:
handler: src/handlers/process-delete.handler
# events:
# - sqs:
# arn: !GetAtt DeleteFileQueue.Arn
# batchSize: 20
events:
- sqs:
arn: !GetAtt DeleteFileQueue.Arn
role: LambdaFunctionRole
environment:
SENTRY_DSN: ${env:SENTRY_DSN}
Expand Down
7 changes: 3 additions & 4 deletions applications/core/anti-virus/serverless.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,9 @@ functions:
StartScan:
handler: src/handlers/start-scan.handler
role: StartScanLambdaFunctionRole
# events:
# - sqs:
# arn: !GetAtt AntiVirusQueue.Arn
# batchSize: 20
events:
- sqs:
arn: !GetAtt AntiVirusQueue.Arn
environment:
SENTRY_DSN: ${env:SENTRY_DSN}
STATE_MACHINE_ARN: !Ref ScanUploadStateMachine
Expand Down

0 comments on commit 93fe994

Please sign in to comment.