For the complete documentation index, see llms.txt.
Skip to main content
Version: 8.9

Amazon SQS outbound connector

Use the Amazon SQS outbound connector to send messages to a queue in Amazon Simple Queue Service (Amazon SQS) from your BPMN process.

About this connector​

The Amazon SQS outbound connector sends a message to a standard or FIFO queue and returns the SQS message identifier of the new message.

To start or continue a process when a message arrives in a queue, use the Amazon SQS inbound connector.

Prerequisites​

To use the Amazon SQS outbound connector, you need an SQS queue and AWS credentials with the sqs:SendMessage permission for that queue. Provide the credentials as an IAM access key and secret key pair or, in Hybrid and Self-Managed setups, through the default credentials chain. Learn more in the SQS Developer Guide.

note

Use secrets to avoid exposing your AWS IAM credentials as plain text. See managing secrets.

Use this connector​

New to using an outbound connector? Learn how to add and use this type of connector, apply element templates, use connector secrets, handle results and errors, and more.

Configuration​

Authentication​

PropertyTypeRequiredDescriptionExample
AuthenticationDropdownYes

The AWS authentication strategy:

  • Credentials (SaaS/Self-Managed): Use this option if you have a valid pair of access and secret keys provided by your AWS account administrator.

  • Default Credentials Chain (Hybrid/Self-Managed only): Use this option if your system is configured for implicit authentication, such as role-based authentication, credentials supplied through environment variables, or files on the target host. This approach uses the Default Credential Provider Chain to resolve the required credentials.

Access keyStringYes, if Authentication is CredentialsThe access key of an IAM user with permission to send messages to the queue.{{secrets.MY_AWS_ACCESS_KEY}}
Secret keyStringYes, if Authentication is CredentialsThe secret key of the IAM user with the access key above.

Queue properties​

PropertyTypeRequiredDescriptionExample
URLStringYesThe URL of the SQS queue to send the message to.
Queue typeDropdownYesWhether the queue is a standard or a FIFO queue: Standard or FIFO. The default is Standard.
RegionStringYesThe AWS region of the queue.us-east-1

Operations​

Send message​

Send a message to an Amazon SQS queue.

Input parameters​

PropertyTypeRequiredDescriptionExample
Message bodyTextYesThe data to send to the queue. The field requires a FEEL expression.
Message attributesTextNoOptional message metadata, as a FEEL map keyed by attribute name. Each value contains a StringValue and a DataType. See message attributes.
Message group IDStringYes, for FIFO queuesThe message group ID of the message. Shown when Queue type is FIFO.
Message deduplication IDStringNo, for FIFO queuesThe message deduplication ID of the message. Shown when Queue type is FIFO. Whether you need it depends on how you configured message deduplication for the queue.

To learn more about Friendly Enough Expression Language (FEEL) expressions, see what is FEEL?.

Message attributes​

Amazon SQS lets you include structured metadata, such as timestamps, geospatial data, signatures, and identifiers, with messages using message attributes. The connector supports non-binary message attributes. Compose the value to comply with the Amazon SQS message attribute data format.

Example of valid message attributes as a FEEL value:

= {
"timestamp":{
"StringValue":today(),
"DataType":"String"
},
"messageSubmittedBy":{
"StringValue":"user12345",
"DataType":"String"
}
}

Output​

The connector returns the SQS message identifier of the new message in a messageId field.

Example response:

{
"messageId": "5fea7756-0ea4-451a-a703-a558b933e274"
}

To use the message identifier in your process, map it with a Result expression, for example:

= {
"createdMessageID": response.messageId
}

Troubleshooting​

To learn about general error handling in Camunda, see BPMN errors and failing jobs.

Further resources​