# Integrate Amazon SQS with Amazon MQ
## Setup
Assuming you have an AWS account with sufficient priviliges to create SQS queues an EC2/Cloud9 instance.
## What are we doing?
We will integrate SQS with AmazonMQ using Apache Camel.
## Add AWS SQS SDK dependencies to maven
```
org.apache.camel
camel-aws
2.24.2
```
## Add SQS bean configuration
```
${aws.region}
```
Add the following to ```~/environment/router/main/resources/secrets.properties```. Remember to encrypt the acces.key and secret.key using ```crypt.sh``` script.
The encrypted properties added to properties file using ENC(encrypted text) and they are automatically decrypted when the project is run by exporting encryption key using the CAMEL_MASTER_PASSWORD environment variable.
```
access.key=ENC(encrypted access key)
secret.key=ENC(encrypted secret key)
aws.region=ENC(encrypted region)
```
## Add SQS route
In this example we are copying messages from TIBCO queue to SQS. Changing from to a Amazon MQ endpoint can copy messages from AmazonMQ to SQS.
```
```
## Run the project
Now run the project using the following commands.
```
export CAMEL_MASTER_PASSWORD=
mvn install
mvn camel:run
```