Rebus.AmazonSqs
8.0.0
dotnet add package Rebus.AmazonSqs --version 8.0.0
NuGet\Install-Package Rebus.AmazonSqs -Version 8.0.0
<PackageReference Include="Rebus.AmazonSqs" Version="8.0.0" />
<PackageVersion Include="Rebus.AmazonSqs" Version="8.0.0" />
<PackageReference Include="Rebus.AmazonSqs" />
paket add Rebus.AmazonSqs --version 8.0.0
#r "nuget: Rebus.AmazonSqs, 8.0.0"
#:package Rebus.AmazonSqs@8.0.0
#addin nuget:?package=Rebus.AmazonSqs&version=8.0.0
#tool nuget:?package=Rebus.AmazonSqs&version=8.0.0
Rebus.AmazonSQS
Provides an Amazon SQS transport for Rebus.
Usage
Using bare-bones Rebus with the built-in container adapter, you would do something like this:
using var activator = new BuiltinHandlerActivator();
Configure.With(activator)
.Transport(t => t.UseAmazonSQS(accessKeyId, accessKey, regionEndpoint, queueName))
.Start();
Console.ReadLine();
but for most apps, it would probably be more appropriate to use Microsoft.Extensions.Hosting and Rebus.ServiceProvider and do this:
services.AddRebus(
configure => configure
.Transport(t => t.UseAmazonSQS(accessKeyId, accessKey, regionEndpoint, queueName))
);
Required AWS security policies
The policy required for receiving messages from a SQS queue using "least-privilege principle" is as follows:
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": [
"sqs:DeleteMessage",
"sqs:GetQueueUrl",
"sqs:ChangeMessageVisibility",
"sqs:DeleteMessageBatch",
"sqs:SendMessageBatch",
"sqs:SendMessage",
"sqs:ReceiveMessage",
"sqs:DeleteQueue",
"sqs:CreateQueue",
"sqs:SetQueueAttributes"
],
"Resource": "[Your SQS incoming queue and DLQ arn here]"
}
]
}
Note that the last three actions(sqs:DeleteQueue, sqs:CreateQueue and sqs:SetQueueAttribute) is only required if AmazonSQSTransportOptions.CreateQueue is set to true, otherwise they could/should be omitted. It is the default behaviour that CreateQueue is set to true, hence they are included in the above ACL.
To be able to send to a queue the following permissions are required on the target queue:
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": [
"sqs:GetQueueUrl",
"sqs:SendMessageBatch",
],
"Resource": "[Your SQS outgoing target queue arn here]"
}
]
}
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
| .NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
| .NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
| .NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
| MonoAndroid | monoandroid was computed. |
| MonoMac | monomac was computed. |
| MonoTouch | monotouch was computed. |
| Tizen | tizen40 was computed. tizen60 was computed. |
| Xamarin.iOS | xamarinios was computed. |
| Xamarin.Mac | xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.0
- awssdk.sqs (>= 4.0.0.5)
- Rebus (>= 8.8.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories (1)
Showing the top 1 popular GitHub repositories that depend on Rebus.AmazonSqs:
| Repository | Stars |
|---|---|
|
mastreeno/Merp
An event based Micro ERP
|
| Version | Downloads | Last Updated |
|---|---|---|
| 8.0.0 | 47,092 | 6/5/2025 |
| 7.0.0 | 501,273 | 11/15/2023 |
| 7.0.0-alpha02 | 694 | 8/2/2023 |
| 7.0.0-alpha01 | 706 | 3/27/2023 |
| 6.5.0 | 180,916 | 5/11/2022 |
| 6.4.0 | 138,351 | 4/4/2022 |
| 6.3.2 | 86,976 | 6/3/2021 |
| 6.3.1 | 26,367 | 3/23/2021 |
| 6.3.0 | 13,365 | 2/21/2021 |
| 6.2.0 | 40,386 | 12/3/2020 |
| 6.1.2 | 4,389 | 11/1/2020 |
| 6.1.1 | 9,724 | 8/6/2020 |
| 6.1.0 | 1,869 | 6/24/2020 |
| 6.0.0 | 12,067 | 2/18/2020 |
| 5.0.0-b03 | 18,194 | 8/15/2018 |
| 5.0.0-b02 | 1,617 | 8/2/2018 |
| 5.0.0-b01 | 1,572 | 8/2/2018 |
| 4.1.1 | 35,768 | 3/2/2018 |
| 4.1.0 | 18,696 | 1/23/2018 |
| 4.0.3 | 2,387 | 1/19/2018 |