I'm upgrading from camel-aws to camel-aws2. All in all, everything seems to be working. However, I keep getting these warnings in the logs:
WARN 23652 --- [Camel (camel-1) thread #11 - seda://to-image-queue] o.a.c.component.aws2.sqs.Sqs2Producer : Cannot put the message header key=FileFromFtp, value=/tmp/Y25032_20251126T090838Z7663778454258315714.jpg into Sqs MessageAttribute
This issue wasn't around before, but everything still seems to be working fine. I suspect that camel-aws2 attempts to add all headers as MessageAttributes to the SqsMessage automatically. If that assessment is correct, how do I stop it from doing that? If it isn't, why the hell is camel attempting to add headers to the message that it didn't before?
Here's the definition of the route in question, in case that helps any:
from(SEDA_TO_IMAGE_QUEUE)
.routeId("send-image-to-processing-queue")
.log(LoggingLevel.DEBUG, "sending image metadata for camera \${header.$HEADER_CAMERA} to queue")
.process().message { this.createPayload(it) }
.marshal(jacksonDataFormat)
.to("aws2-sqs://{{sqs.queue}}?amazonSQSClient=#sqs-client")
.log(LoggingLevel.DEBUG, "sent image \${header." + AWS2S3Constants.KEY + "} to queue")