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 6,199 6/5/2025
7.0.0 394,425 11/15/2023
7.0.0-alpha02 633 8/2/2023
7.0.0-alpha01 633 3/27/2023
6.5.0 175,326 5/11/2022
6.4.0 138,115 4/4/2022
6.3.2 84,959 6/3/2021
6.3.1 25,500 3/23/2021
6.3.0 12,986 2/21/2021
6.2.0 38,889 12/3/2020
6.1.2 4,131 11/1/2020
6.1.1 9,445 8/6/2020
6.1.0 1,619 6/24/2020
6.0.0 11,704 2/18/2020
5.0.0-b03 18,080 8/15/2018
5.0.0-b02 1,483 8/2/2018
5.0.0-b01 1,446 8/2/2018
4.1.1 35,214 3/2/2018
4.1.0 18,358 1/23/2018
4.0.3 2,005 1/19/2018
4.0.2 2,041 1/9/2018
4.0.1 2,226 10/30/2017
4.0.0 5,077 8/15/2017
4.0.0-b11 1,638 7/5/2017
4.0.0-b09 1,856 6/21/2017
4.0.0-b08 1,563 6/1/2017
4.0.0-b07 1,562 5/18/2017
4.0.0-b06 1,604 5/17/2017
4.0.0-b05 1,567 4/19/2017
4.0.0-b03 2,835 4/4/2017
4.0.0-b01 1,529 3/23/2017
3.0.0 35,401 1/5/2017
2.1.0 5,415 12/20/2016
2.0.0 2,147 9/20/2016
2.0.0-b02 1,561 9/12/2016
2.0.0-b01 1,560 9/9/2016
2.0.0-a4 1,809 9/7/2016
0.99.74 1,835 8/29/2016
0.99.73 1,782 8/12/2016
0.99.72 1,835 8/4/2016
0.99.71 2,089 8/3/2016
0.99.70 2,021 7/29/2016
0.99.68 1,804 7/18/2016
0.99.67 1,830 7/1/2016
0.99.66 1,849 6/28/2016
0.99.65 1,826 6/23/2016
0.99.64 1,826 6/22/2016
0.99.63 1,833 6/21/2016
0.99.62 1,883 6/17/2016
0.99.61 1,819 6/17/2016
0.99.60 1,876 6/15/2016
0.99.59 1,796 6/3/2016
0.99.58 1,863 5/24/2016
0.99.57 1,809 5/22/2016
0.99.56 1,823 5/22/2016
0.99.55 2,006 5/16/2016
0.99.54 1,852 5/12/2016
0.99.53 1,837 5/12/2016
0.99.52 1,800 5/11/2016
0.99.51 1,743 5/9/2016
0.99.50 1,856 4/13/2016
0.99.48 1,807 4/6/2016
0.99.47 1,883 3/31/2016
0.99.46 1,829 3/30/2016
0.99.45 1,791 3/29/2016
0.99.44 1,830 3/26/2016
0.99.43 1,868 3/26/2016
0.99.42 1,838 3/22/2016
0.99.41 1,857 3/17/2016
0.99.40 1,874 3/15/2016
0.99.39 1,838 3/14/2016
0.99.38 1,839 3/9/2016
0.99.37 1,828 3/9/2016
0.99.36 1,892 3/3/2016
0.99.35 1,985 2/22/2016
0.99.34 1,842 2/19/2016
0.99.33 2,079 2/12/2016
0.99.32 1,870 2/10/2016
0.99.31 1,830 2/8/2016
0.99.30 1,850 2/5/2016
0.99.29 2,404 2/2/2016
0.99.27 1,824 1/28/2016
0.99.26 1,794 1/27/2016
0.99.25 1,824 1/22/2016
0.99.24 1,964 1/18/2016
0.99.23 1,838 12/18/2015
0.99.22 1,813 12/18/2015
0.99.21 2,084 12/11/2015
0.99.20 2,053 12/10/2015
0.99.19 1,914 12/8/2015
0.99.18 1,934 12/7/2015
0.99.17 1,814 12/7/2015
0.99.16 2,066 11/30/2015
0.99.14 1,990 11/24/2015
0.99.13 1,964 11/23/2015
0.99.12 1,899 11/17/2015
0.99.11 1,878 11/17/2015
0.99.10 1,886 11/11/2015
0.99.9 1,878 11/5/2015
0.99.8 1,842 11/5/2015
0.99.7 1,921 10/29/2015
0.99.5 1,869 10/27/2015
0.99.4 1,856 10/27/2015
0.99.2 1,875 10/12/2015
0.99.1 1,926 10/8/2015
0.99.0 2,202 10/7/2015
0.98.12 1,895 9/17/2015
0.98.11 1,863 9/17/2015
0.98.10 1,879 9/16/2015
0.98.9 1,886 9/14/2015
0.98.8 1,902 9/13/2015
0.98.7 1,878 9/9/2015
0.98.6 1,896 9/7/2015
0.98.5 1,834 9/3/2015
0.98.4 1,872 9/3/2015
0.98.3 1,892 9/1/2015
0.98.2 1,870 8/27/2015
0.98.1 1,874 8/27/2015
0.98.0 1,898 8/26/2015
0.97.0 1,863 8/25/2015
0.96.0 1,869 8/24/2015
0.95.0 1,886 8/20/2015
0.94.0 1,867 8/19/2015
0.93.0 1,866 8/19/2015
0.92.4 1,889 8/17/2015
0.92.3 2,096 8/13/2015
0.92.2 2,012 8/12/2015
0.92.1 2,330 8/12/2015
0.92.0 2,006 8/11/2015
0.91.0 2,119 8/11/2015
0.90.9 2,197 8/10/2015
0.90.8 2,204 8/9/2015
0.90.7 2,118 8/5/2015
0.90.6 2,108 8/4/2015
0.90.5 2,127 8/4/2015
0.90.4 2,069 8/2/2015
0.90.3 2,013 8/2/2015
0.90.2 1,992 7/31/2015
0.90.1 2,027 7/29/2015
0.90.0 2,020 7/29/2015