-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: or-2595 failed messages exceptions are sent to dlq
--------- Co-authored-by: Koen Metsu <[email protected]> Co-authored-by: Jan Lesage <[email protected]>
- Loading branch information
1 parent
8ee592a
commit bf44b16
Showing
17 changed files
with
206 additions
and
76 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,27 @@ | ||
#!/bin/sh | ||
|
||
awslocal s3api create-bucket --bucket verenigingsregister-uwp-data | ||
|
||
# Set variables | ||
REGION="eu-west-1" | ||
REGION="us-east-1" | ||
ACCOUNT_ID="000000000000" # Default account ID used by LocalStack | ||
MAX_RECEIVE_COUNT=3 | ||
QUEUE_PART="" | ||
|
||
# DLQ names | ||
DLQ_NAME="verenigingsregister-addressmatch-dlq" | ||
|
||
# Construct DLQ ARNs | ||
DLQ_ARN="arn:aws:sqs:$REGION:$ACCOUNT_ID:$DLQ_NAME" | ||
with_dlq() | ||
{ | ||
QUEUE_NAME="verenigingsregister-$@" | ||
DLQ_NAME="$QUEUE_NAME-dlq" | ||
DLQ_ARN="arn:aws:sqs:$REGION:$ACCOUNT_ID:$DLQ_NAME" | ||
|
||
# Create DLQs | ||
awslocal sqs create-queue --region $REGION --queue-name $DLQ_NAME | ||
awslocal sqs create-queue --region $REGION --queue-name $QUEUE_NAME | ||
awslocal sqs create-queue --region $REGION --queue-name $DLQ_NAME | ||
awslocal sqs set-queue-attributes \ | ||
--queue-url http://sqs.$REGION.localhost.localstack.cloud:4566/000000000000/$QUEUE_NAME \ | ||
--attributes "{ | ||
\"RedrivePolicy\": \"{ \\\"maxReceiveCount\\\": \\\"3\\\", \\\"deadLetterTargetArn\\\": \\\"$DLQ_ARN\\\" }\" | ||
}" | ||
} | ||
|
||
awslocal sqs create-queue --region $REGION --queue-name verenigingsregister-addressmatch --attribute file:///etc/localstack/init/ready.d/01_sqs-init.redrive.json | ||
with_dlq addressmatch | ||
with_dlq addressmatch-e2e | ||
with_dlq grarsync | ||
with_dlq grarsync-e2e |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
#!/bin/sh | ||
awslocal s3api create-bucket --bucket verenigingsregister-uwp-data |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.