The Amazon SQS Connector allows you to connect your BPMN service with Amazon Simple Queue Service (SQS).
To use the Amazon SQS Connector, you need to have an SQS Queue, IAM key, and secret pair with the
sqs:SendMessage policy relative to your SQS.
Create an Amazon SQS Connector task
To use the Amazon SQS Connector in your process, either change the type of existing task by clicking on it and using the wrench-shaped Change type context menu icon, or create a new Connector task by using the Append Connector context menu. Follow our guide on using Connectors to learn more.
Make your Amazon SQS Connector for sending messages executable
To make your Amazon SQS Connector for sending messages executable, take the following steps:
- Set the relevant IAM key and secret pair in the Authentication section. For example,
secrets.MY_AWS_ACCESS_KEY. The value can be plain text, but this is not recommended due to security concerns.
- In the Queue Properties section, set the URL of your SQS queue as well as its region.
- In the Input message data section, fill out the field Message body with the data you would like to submit to the queue. The field requires FEEL input.
- (Optional) In the Input message data section, fill out the field Message attributes to set optional message metadata. This field requires FEEL input. See the relevant appendix section to find out more about this field.
Amazon SQS Connector response
The Amazon SQS Connector returns the SQS message identifier of a newly created message.
The response contains a
You can use an output mapping to map the response:
- Use Result Variable to store the response in a process variable. For example,
- Use Result Expression to map fields from the response into process variables. For example:
Appendix & FAQ
What are the message attributes and how can I set them?
Amazon SQS lets you include structured metadata (such as timestamps, geospatial data, signatures, and identifiers) with messages using message attributes. The Amazon SQS Connector allows you to include non-binary message attributes in the section Input message data. The message attribute value must be composed to be compliant with Amazon SQS message attribute data format.
Example of a valid message attribute as a FEEL value:
How do I store AWS IAM Secrets for my SQS Connector?
It is highly recommended storing your secret AWS IAM credentials as Camunda secrets. Follow our documentation on managing secrets to learn more.