Rebus.AmazonSqs 8.0.0

dotnet add package Rebus.AmazonSqs --version 8.0.0
                    
NuGet\Install-Package Rebus.AmazonSqs -Version 8.0.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Rebus.AmazonSqs" Version="8.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Rebus.AmazonSqs" Version="8.0.0" />
                    
Directory.Packages.props
<PackageReference Include="Rebus.AmazonSqs" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Rebus.AmazonSqs --version 8.0.0
                    
#r "nuget: Rebus.AmazonSqs, 8.0.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Rebus.AmazonSqs@8.0.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Rebus.AmazonSqs&version=8.0.0
                    
Install as a Cake Addin
#tool nuget:?package=Rebus.AmazonSqs&version=8.0.0
                    
Install as a Cake Tool

Rebus.AmazonSQS

install from nuget

Provides an Amazon SQS transport for Rebus.

alternate text is missing from this package README image


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 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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 44,264 6/5/2025
7.0.0 495,543 11/15/2023
7.0.0-alpha02 692 8/2/2023
7.0.0-alpha01 706 3/27/2023
6.5.0 180,483 5/11/2022
6.4.0 138,346 4/4/2022
6.3.2 86,693 6/3/2021
6.3.1 26,280 3/23/2021
6.3.0 13,359 2/21/2021
6.2.0 40,339 12/3/2020
6.1.2 4,384 11/1/2020
6.1.1 9,718 8/6/2020
6.1.0 1,863 6/24/2020
6.0.0 12,050 2/18/2020
5.0.0-b03 18,193 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,749 3/2/2018
4.1.0 18,692 1/23/2018
4.0.3 2,382 1/19/2018
4.0.2 2,380 1/9/2018
4.0.1 2,582 10/30/2017
4.0.0 5,376 8/15/2017
4.0.0-b11 1,766 7/5/2017
4.0.0-b09 1,975 6/21/2017
4.0.0-b08 1,695 6/1/2017
4.0.0-b07 1,703 5/18/2017
4.0.0-b06 1,717 5/17/2017
4.0.0-b05 1,707 4/19/2017
4.0.0-b03 2,965 4/4/2017
4.0.0-b01 1,662 3/23/2017
3.0.0 35,684 1/5/2017
2.1.0 5,712 12/20/2016
2.0.0 2,449 9/20/2016
2.0.0-b02 1,685 9/12/2016
2.0.0-b01 1,678 9/9/2016
2.0.0-a4 1,944 9/7/2016
0.99.74 2,136 8/29/2016
0.99.73 2,089 8/12/2016
0.99.72 2,126 8/4/2016
0.99.71 2,388 8/3/2016
0.99.70 2,310 7/29/2016
0.99.68 2,090 7/18/2016
0.99.67 2,129 7/1/2016
0.99.66 2,142 6/28/2016
0.99.65 2,117 6/23/2016
0.99.64 2,132 6/22/2016
0.99.63 2,126 6/21/2016
0.99.62 2,197 6/17/2016
0.99.61 2,124 6/17/2016
0.99.60 2,174 6/15/2016
0.99.59 2,100 6/3/2016
0.99.58 2,174 5/24/2016
0.99.57 2,114 5/22/2016
0.99.56 2,125 5/22/2016
0.99.55 2,310 5/16/2016
0.99.54 2,157 5/12/2016
0.99.53 2,149 5/12/2016
0.99.52 2,101 5/11/2016
0.99.51 2,055 5/9/2016
0.99.50 2,154 4/13/2016
0.99.48 2,109 4/6/2016
0.99.47 2,194 3/31/2016
0.99.46 2,131 3/30/2016
0.99.45 2,085 3/29/2016
0.99.44 2,137 3/26/2016
0.99.43 2,184 3/26/2016
0.99.42 2,143 3/22/2016
0.99.41 2,156 3/17/2016
0.99.40 2,173 3/15/2016
0.99.39 2,147 3/14/2016
0.99.38 2,147 3/9/2016
0.99.37 2,125 3/9/2016
0.99.36 2,200 3/3/2016
0.99.35 2,293 2/22/2016
0.99.34 2,150 2/19/2016
0.99.33 2,433 2/12/2016
0.99.32 2,171 2/10/2016
0.99.31 2,122 2/8/2016
0.99.30 2,148 2/5/2016
0.99.29 2,698 2/2/2016
0.99.27 2,131 1/28/2016
0.99.26 2,087 1/27/2016
0.99.25 2,125 1/22/2016
0.99.24 2,264 1/18/2016
0.99.23 2,132 12/18/2015
0.99.22 2,114 12/18/2015
0.99.21 2,414 12/11/2015
0.99.20 2,403 12/10/2015
0.99.19 2,214 12/8/2015
0.99.18 2,233 12/7/2015
0.99.17 2,105 12/7/2015
0.99.16 2,368 11/30/2015
0.99.14 2,296 11/24/2015
0.99.13 2,252 11/23/2015
0.99.12 2,201 11/17/2015
0.99.11 2,172 11/17/2015
0.99.10 2,197 11/11/2015
0.99.9 2,174 11/5/2015
0.99.8 2,148 11/5/2015
0.99.7 2,222 10/29/2015
0.99.5 2,164 10/27/2015
0.99.4 2,157 10/27/2015
0.99.2 2,168 10/12/2015
0.99.1 2,216 10/8/2015
0.99.0 2,506 10/7/2015
0.98.12 2,192 9/17/2015
0.98.11 2,166 9/17/2015
0.98.10 2,187 9/16/2015
0.98.9 2,195 9/14/2015
0.98.8 2,198 9/13/2015
0.98.7 2,178 9/9/2015
0.98.6 2,203 9/7/2015
0.98.5 2,134 9/3/2015
0.98.4 2,168 9/3/2015
0.98.3 2,191 9/1/2015
0.98.2 2,166 8/27/2015
0.98.1 2,174 8/27/2015
0.98.0 2,186 8/26/2015
0.97.0 2,167 8/25/2015
0.96.0 2,160 8/24/2015
0.95.0 2,173 8/20/2015
0.94.0 2,165 8/19/2015
0.93.0 2,170 8/19/2015
0.92.4 2,199 8/17/2015
0.92.3 2,432 8/13/2015
0.92.2 2,323 8/12/2015
0.92.1 2,694 8/12/2015
0.92.0 2,307 8/11/2015
0.91.0 2,413 8/11/2015
0.90.9 2,494 8/10/2015
0.90.8 2,518 8/9/2015
0.90.7 2,420 8/5/2015
0.90.6 2,414 8/4/2015
0.90.5 2,441 8/4/2015
0.90.4 2,375 8/2/2015
0.90.3 2,313 8/2/2015
0.90.2 2,288 7/31/2015
0.90.1 2,335 7/29/2015
0.90.0 2,330 7/29/2015