# Amazon SQS

SQS is a fully managed queue provider from AWS that's officially supported by **@node-ts/bus**. Once configured, **@node-ts/bus** will automatically create all SNS topics, SQS queues and manage subscriptions for the handlers of your application.

### Installation

Install the **@node-ts/bus-sqs** package

```bash
npm install @node-ts/bus-sqs
```

Configure the transport and provide this to the bus configuration

```typescript
import { Bus } from '@node-ts/bus-core'
import { SqsTransport, SqsTransportConfiguration } from '@node-ts/bus-sqs'

const sqsConfiguration: SqsTransportConfiguration = {
  awsRegion: AWS_REGION,
  awsAccountId: AWS_ACCOUNT_ID,
  queueName: 'service-queue',
  deadLetterQueueName: `service-queue-dead-letter`
}
const sqsTransport = new SqsTransport(sqsConfiguration)
await Bus
  .configure()
  .withTransport(sqsTransport)
  .initialize()
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://bus.node-ts.com/guide/transports/amazon-sqs.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
