---
title: t AWS Simple Queue Service (SQS)
description: Available triggers
documentId: ipaas-aws-sqs-trigger
locale: en-US
---

The [**AWS SQS**](https://camel.apache.org/components/4.10.x/aws2-sqs-component.html) component supports sending and receiving messages to the Amazon SQS service.

**URI syntax**: `aws2-sqs:queueNameOrArn`

## Main fields

*Path parameters*

| **Name** | **Description** | **Default** | **Type** |
|----------|---------------|------------|----------|
|`queueNameOrArn` (common)|(required) Queue name or ARN | —  |String|

*Query parameters*

| **Name** | **Description** | **Default** | **Type** |
|----------|---------------|------------|----------|
| `accessKey`(security) | Amazon AWS access key.| — | String |
| `secretKey`(security) | Amazon AWS secret key.  | — | String |


## Example


<Steps>
    <Step>
    The flow receives messages from an AWS SQS queue. The access credentials (`accessKey` and `secretKey`) allow the flow to authenticate with AWS (credentials are stored in variables, indicated by double curly braces). Read more about configuring [flow variables](/docs/integrations/ipaas-flow-variables).
    </Step>
    <Step>
    Then, the received messages are logged, allowing visualization of the processed data.
    </Step>
</Steps>


```yaml
- from:
        uri: aws2-sqs:poc-camel-sqs
        parameters:
            accessKey: "{{ACCESS_KEY}}"
            secretKey: "{{SECRET_KEY}}"
        steps:
            - to:
                    uri: log:INFO
```

![](https://creative-ball-51b3fc85c0.media.strapiapp.com/aws_sqs_trigger_4c8108c963.png)


### Result


![](https://creative-ball-51b3fc85c0.media.strapiapp.com/aws_sqs_trigger2_1e4e1e8127.png)

```
sensedia-integration-camel-poc-545cd84bf4-d5z25 integration 2024-03-22 17:52:59,482 INFO  [info] (Camel (camel-1) thread #1 - aws2-sqs://{sqs-arn}) Exchange[ExchangePattern: InOnly, BodyType: String, Body: SQS just received a message! Hello world!]
```
