How does SQS answer a RedriveAllowPolicy with sourceQueueArns but no redrivePermission, or byQueue with no queues? #9340
Unanswered
glorfindel33
asked this question in
Q&A
Replies: 1 comment
|
In AWS SQS (
|
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Floci accepts both policies below, and we could not find in the docs whether AWS does.
allowAllis "(Default) Any source queues in this AWS account in the same Region can specify this queue as the dead-letter queue", andsourceQueueArns: "You can specify this parameter only when the redrivePermission parameter is set to byQueue" (CreateQueue). Neither says what AWS does withsourceQueueArnsand noredrivePermission, or withbyQueueand nosourceQueueArns.main(cd0436a53):CreateQueueaccepts both, andGetQueueAttributesreturns each as sent:{"sourceQueueArns":["arn:aws:sqs:us-east-1:000000000000:rap-src-28638"]}and{"redrivePermission":"byQueue"}.The source queue exists so that the first policy cannot fail for naming a missing queue. Against Floci, add
AWS_ENDPOINT_URL=http://localhost:4566,AWS_DEFAULT_REGION=us-east-1and any test credentials.If anyone can run it on AWS, we'll open an issue for any difference.
All reactions