Comments (4)
Hi, I believe I am having similar issues as @mikejr83
$sqsClient = new SqsClient(['debug' => true, 'endpoint' => 'http://localhost:9324','region' => 'eu-central-1', 'version' => '2012-11-05']);
$message = [ 'QueueUrl' => 'http://localhost:9324/queue/service-queue', 'MessageBody' => 'Some message', 'MessageGroupId' => 'GROUP' ];
$sqsClient->sendMessage($message);
I am also adding message attributes here but committed in example above
I have tried with the default queue as well, my code works with a queue on aws, using the credentials file
Debug output from the client
sqs-debug.txt
Any help would be appreciated
from alpine-sqs.
Hi, @mikejr83 @osmanghoni1 found a work around for the .net AWS SDK dependency injection not working with a local docker instance:
#if DEBUG // Connect to local sqs instance, leveraging using for disposal and proper managment of the entity. using IAmazonSQS lsqs = new AmazonSQSClient(new AmazonSQSConfig { ServiceURL = "http://localhost:9324", }); sqs = lsqs; #endif
from alpine-sqs.
As I have no credentials at all yet, I was able to send a message using the Java SDK like this:
AmazonSQS sqs = AmazonSQSClientBuilder.standard()
.withEndpointConfiguration(new AwsClientBuilder.EndpointConfiguration("http://localhost:9324", null))
.withCredentials(new AWSStaticCredentialsProvider(new AnonymousAWSCredentials()))
.build();
sqs.sendMessage("http://localhost:9324/queue/default", "Hello World");
from alpine-sqs.
@WASDi I actually recommend using ElasticMQ. It does not have the same long polling issues as Alpine SQS and it still allows you to use AWS SDK to connect to it.
from alpine-sqs.
Related Issues (20)
- Provide an image elasticmq-native based
- Delete message, creates another one HOT 3
- CPU over 100% when queues are not empty HOT 10
- about init queue
- support FIFO q? HOT 7
- Dead Letter Queue fails
- bad ui experience when there are too many queues... HOT 1
- How to support replica and cluster
- Registering new queues with the UI
- FIFO queue deduplication ID doesn't work
- Unable to locate credentials. You can configure credentials by running "aws configure" HOT 2
- roribio16/alpine-sqs:latest not working wie apple silicon HOT 6
- Queue fails to deliver messages HOT 1
- Insight Startup Issue with extra queues HOT 1
- Queue is not working when launching
- Value default for parameter MessageGroupId is invalid HOT 2
- Change credentials
- Support for JSON protocol HOT 5
- .
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from alpine-sqs.