Skip to content

Commit

Permalink
Merge pull request #4 from FloRul/dev
Browse files Browse the repository at this point in the history
Add visibility timeout to SQS queue
  • Loading branch information
FloRul authored Jan 26, 2024
2 parents 582640d + c27c91c commit c9c5fd5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions ingestion/sqs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ resource "aws_sqs_queue" "dead_letter_queue" {

resource "aws_sqs_queue" "queue" {
name = var.queue_name

visibility_timeout_seconds = 500
redrive_policy = jsonencode({
deadLetterTargetArn = aws_sqs_queue.dead_letter_queue.arn
maxReceiveCount = 5
Expand All @@ -22,7 +22,6 @@ resource "aws_s3_bucket_notification" "bucket_notification" {
}
}


resource "aws_lambda_event_source_mapping" "event_source_mapping" {
depends_on = [ module.lambda_function_container_image ]
event_source_arn = aws_sqs_queue.queue.arn
Expand Down

0 comments on commit c9c5fd5

Please sign in to comment.