Skip to content

Commit

Permalink
fix: or-2595 init sh
Browse files Browse the repository at this point in the history
  • Loading branch information
emalfroy committed Dec 5, 2024
1 parent ec10eee commit a6bb9db
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .localstack/init/ready.d/01_sqs-init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,21 +8,20 @@ QUEUE_PART=""

with_dlq()
{
QUEUE_PART=$@
QUEUE_NAME="verenigingsregister-$@"
DLQ_NAME=$QUEUE_NAME"-dlq"
DLQ_NAME="$QUEUE_NAME-dlq"
DLQ_ARN="arn:aws:sqs:$REGION:$ACCOUNT_ID:$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\\\": \\\"arn:aws:sqs:$REGION:000000000000:$DLQ_NAME\\\" }\"
\"RedrivePolicy\": \"{ \\\"maxReceiveCount\\\": \\\"3\\\", \\\"deadLetterTargetArn\\\": \\\"$DLQ_ARN\\\" }\"
}"
}

with_dlq addressmatch
with_dlq addressmatch-e2e
with_dlq grarsync
with_dlq grarsync-e2e
with_dlq grarsync-e2e

0 comments on commit a6bb9db

Please sign in to comment.