Skip to content

Commit

Permalink
lower visibility_timeout for send-email-high queue (#1029)
Browse files Browse the repository at this point in the history
  • Loading branch information
sastels authored Nov 15, 2023
1 parent 31ca29d commit babda95
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions aws/common/sqs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,16 @@ resource "aws_sqs_queue" "eks_notification_canada_ca_sms_high_queue" {
visibility_timeout_seconds = var.sqs_visibility_timeout_priority_high
}

resource "aws_sqs_queue" "eks_notification_canada_ca_email_high_queue" {
name = "${var.celery_queue_prefix}send-email-high"
sqs_managed_sse_enabled = true
# tfsec:ignore:AWS015 - Queues should be encrypted with customer managed KMS keys
# AWS managed encryption is good enough for us

# Visibility timeout is set to 26 seconds for an application side retry set to 25 seconds.
visibility_timeout_seconds = var.sqs_visibility_timeout_priority_high
}

resource "aws_sqs_queue" "eks_notification_canada_cadelivery_receipts" {
name = "eks-notification-canada-cadelivery-receipts"
delay_seconds = 0
Expand Down

0 comments on commit babda95

Please sign in to comment.