Is it mandatory to provide full sqs url? #214
-
Hi guys, thanks for awesome work done. I wanted to know is it required to always pass in full queue url? Because what I want is to only have something like this: I tried looking for answers, but couldn't find anything related to this. Is it possible? Once again, thanks for your work! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
It doesn’t appear to be directly supported, but you could add an extension method to I haven’t tested it, but this code might work if your service is running within AWS.
|
Beta Was this translation helpful? Give feedback.
It doesn’t appear to be directly supported, but you could add an extension method to
IMessageBusBuilder
, such asbuilder.AddSqsQueue("test-message-queue")
. This method would construct theQueueUrl
by retrieving theAccountId
andRegion
from the current AWS credentials.I haven’t tested it, but this code might work if your service is running within AWS.