Is the secret key containing special characters? If so you should use RAW(<secret key>) in the parameter.
Il mar 24 ago 2021, 15:46 Matthee, Elmar [[email protected]] < [email protected]> ha scritto: > I am trying to write a small quarkus-camel-sql client to read messages off > of an existing queue. I have "raw" java code that it works fine with, but > when I try to plug it into a camel route I get the following error and I'm > not sure how/where to tweak. > > WARN [org.apa.cam.com.aws.sqs.Sqs2Consumer] (Camel (camel-1) thread #0 - > aws2-sqs://arn:aws:sqs:us-east-2:550472003149:JSONTestQ.fifo) Consumer > SqsConsumer[aws2-sqs://arn:aws:sqs:us-east-2:550472003149:JSONTestQ.fifo?accessKey=AKIAYAKVQFZGTCDOR3OP&secretKey=xxxxxx] > failed polling endpoint: > aws2-sqs://arn:aws:sqs:us-east-2:550472003149:JSONTestQ.fifo?accessKey=AKIAYAKVQFZGTCDOR3OP&secretKey=xxxxxx. > Will try again at next poll. Caused by: > [software.amazon.awssdk.services.sqs.model.SqsException - The request > signature we calculated does not match the signature you provided. Check > your AWS Secret Access Key and signing method. Consult the service > documentation for details. > > > > > > My camel route looks as follows: > > > from("aws2-sqs://arn:aws:sqs:us-east-2:550472003149:JSONTestQ.fifo?accessKey=AKIAYAKVQFZGTCDOR3OP&secretKey=secretkey") > .log("We have a message! ${body}") > > .to("file://target/output?fileName=tester-message-${date:now:MMDDyy-HHmmss}.json");< > https://github.com/localstack/localstack/issues/url> > > I'm VERY green with quarkus and camel (and SQS for that matter) and the > documentation is sparce and not exactly illuminating. > > Any help would be greatly appreciated. > > Regards > > Elmar > > Elmar Matthee > INFORMATION TECHNOLOGY (Institutional Software Solutions) > University of Stellenbosch > South Africa > Tel: +27 21 808 3580 | map < > http://www.google.com/maps/ms?ie=UTF8&hl=en&msa=0&msid=103842393525197829607.000001120a4a06b965308&ll=-33.929545,18.865285&spn=0.01613,0.029182&t=h&z=15&om=0 > > > Cel: +27 82 829 8417 > Fax: +27 21 808 4102 > -- > Meddle not in the affairs of dragons puny mortal > for thou art crunchy and taste good with ketchup. > > > [https://www.sun.ac.za/productionfooter/email/ProductionFooter.jpg]< > https://www.sun.ac.za/english/about-us/strategic-documents> > > The integrity and confidentiality of this email are governed by these > terms. Disclaimer<https://www.sun.ac.za/emaildisclaimer/default.aspx> > Die integriteit en vertroulikheid van hierdie e-pos word deur die volgende > bepalings bere?l. Vrywaringsklousule< > https://www.sun.ac.za/emaildisclaimer/default.aspx> >
