# nestjs-aws-sqs

> conexion a amazon aws, sqs microservice strategy, SQS CONSUMER

Latest version **1.2.4** (published 2021-06-15) · MIT license · 0 weekly downloads

## Install

```sh
npm install nestjs-aws-sqs
pnpm add nestjs-aws-sqs
yarn add nestjs-aws-sqs
bun add nestjs-aws-sqs
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.2.4 |
| Published | 2021-06-15 |
| First published | 2021-05-29 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 6 |
| Unpacked size | 32.4 KB |
| Known vulnerabilities | 0 (+6 in 3 direct dependencies) |
| Install scripts | no |
| Author | Efrain Garay A. |
| Maintainers | efraingaray |
| Keywords | aws, npm, amazon, microservice, strategy, SQS, CONSUMER |

## Links

- npm: https://www.npmjs.com/package/nestjs-aws-sqs
- npm.io page: https://npm.io/package/nestjs-aws-sqs

## Dependencies (6)

- [rxjs](https://npm.io/package/rxjs.md) ^6.6.7
- [@nestjs/core](https://npm.io/package/@nestjs/core.md) ^7.6.17
- [@nestjs/common](https://npm.io/package/@nestjs/common.md) ^7.6.15
- [@aws-sdk/client-sqs](https://npm.io/package/@aws-sdk/client-sqs.md) ^3.17.0
- [@aws-sdk/client-sts](https://npm.io/package/@aws-sdk/client-sts.md) ^3.17.0
- [@nestjs/microservices](https://npm.io/package/@nestjs/microservices.md) ^7.6.17

## Alternatives

- [@opentelemetry/exporter-zipkin](https://npm.io/package/@opentelemetry/exporter-zipkin.md) — 14.8M weekly downloads
- [pusher-js](https://npm.io/package/pusher-js.md) — 2.0M weekly downloads
- [browserify](https://npm.io/package/browserify.md) — 1.7M weekly downloads
- [sqs-consumer](https://npm.io/package/sqs-consumer.md) — 1.7M weekly downloads
- [@sanity/eventsource](https://npm.io/package/@sanity/eventsource.md) — 930.8K weekly downloads

## Recent versions

- 1.2.4 (latest) — 2021-06-15
- 1.2.3 — 2021-06-15
- 1.2.2 — 2021-06-15
- 1.2.1 — 2021-06-15
- 1.2.0 — 2021-06-01
- 1.1.0 — 2021-05-29
- 1.0.0 — 2021-05-29

## README

<p align="center">
  <a href="http://nestjs.com/" target="blank"><img src="https://nestjs.com/img/logo-small.svg" width="120" alt="Nest Logo" /></a>
</p>

[circleci-image]: https://img.shields.io/circleci/build/github/nestjs/nest/master?token=abc123def456
[circleci-url]: https://circleci.com/gh/nestjs/nest

  <p align="center">Module for aws services (SQS CONSUMER) 
        <p align="center">

<a href="https://www.npmjs.com/~nestjscore" target="_blank">
    <img src="https://img.shields.io/npm/l/@nestjs/core.svg" alt="Package License" />
</a>
<a href="#badge">
    <img alt="semantic-release" src="https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg">
</a>
<a href="https://paypal.me/hea717" target="_blank"><img src="https://img.shields.io/badge/Donate-PayPal-ff3f59.svg"/></a>
</p>


<h1 align="center" style="border-bottom: none;">SQS CONSUMER NPM AWS SERVICES</h1>



# install


```bash
yarn add @nestjs/microservices
```

# import

 main.ts

```javascript
import { NestFactory } from '@nestjs/core';
import { AppModule } from './app.module';
import {MicroserviceOptions} from "@nestjs/microservices";
import {AwsCloudSqsServer} from "nestjs-aws-sqs";

async function bootstrap() {
    const app = await NestFactory.createMicroservice<MicroserviceOptions>(
        AppModule,
            {
                strategy: new AwsCloudSqsServer({
                    params:{
                        MaxNumberOfMessages: 1,
                        MessageAttributeNames: ["All"],
                        QueueUrl: "QueueUrl",
                        VisibilityTimeout: 30,
                        WaitTimeSeconds: 0,
                    },
                    conexion:{
                        channel: 'notificaions',
                        refresh: 500, // ms
                        region: 'region'
                    }
                }),
            },
    );
    app.listen(() => console.log('Microservice is listening'));
}
bootstrap();
```

---
_Source: https://npm.io/package/nestjs-aws-sqs · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
