Skip to content

Commit

Permalink
Create reaction queue
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander Simmerl committed Jan 31, 2017
1 parent aae776d commit 4596f96
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions infrastructure/terraform/template/storage.tf
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,32 @@ EOF
visibility_timeout_seconds = 60
}

resource "aws_sqs_queue" "reaction-state-change-dlq" {
delay_seconds = 0
max_message_size = 262144
message_retention_seconds = 1209600
name = "reaction-state-change-dlq"
receive_wait_time_seconds = 1
visibility_timeout_seconds = 300
}

resource "aws_sqs_queue" "reaction-state-change" {
delay_seconds = 0
max_message_size = 262144
message_retention_seconds = 1209600
name = "reaction-state-change"
receive_wait_time_seconds = 1

redrive_policy = <<EOF
{
"deadLetterTargetArn": "${aws_sqs_queue.reaction-state-change-dlq.arn}",
"maxReceiveCount": 10
}
EOF

visibility_timeout_seconds = 60
}

# Device update queues, topics and subscriptions.
resource "aws_sqs_queue" "endpoint-state-change-dlq" {
delay_seconds = 0
Expand Down

0 comments on commit 4596f96

Please sign in to comment.