This .NET 8 console application is a powerful tool that allows you to send and receive messages to and from AWS Simple Queue Service (SQS). It's built with simplicity and efficiency in mind, leveraging the capabilities of .NET 8 and AWS SDK for .NET.
- AWS SQS Integration: 🔄 Seamlessly send and receive messages using the AWS SDK for .NET.
- Secure Secrets Handling: 🔐 Utilize an
appsettings.json
file to manage and securely store your AWS credentials.
Before you begin, make sure you have the following installed:
- .NET SDK 8
- AWS CLI configured with your credentials.
-
Clone the repository:
git clone https://github.com/guilhermebernava/SqsSender.git
-
Navigate to the project directory:
cd your-repo
-
Restore dependencies:
dotnet restore
-
Configure AWS credentials in
appsettings.json
:{ "AWS": { "AccessKeyId": "YOUR_ACCESS_KEY_ID", "SecretAccessKey": "YOUR_SECRET_ACCESS_KEY", "Region": "YOUR_AWS_REGION" }, "SQS": { "QueueUrl": "YOUR_QUEUE_URL" } }
-
Run the application:
dotnet run
To send a message to SQS, you should write the message in console.
To receive messages from SQS, is just not end the program after sended a message.
All configuration settings are managed in the appsettings.json
file. Update the file to include your AWS credentials and other configuration options.