@robertoaraneda/nestjs-sns
v1.0.3
Published
AWS SNS module for NestJS
Downloads
25
Readme
AWS SQS Consumer library for NestJS
Instructions
Install
npm install @robertoaraneda/nestjs-sns
Use library
Configure NestjsConsumerModule
- QueueUrl
- Handle message function
- Configure AWS credentials and region
import { NestjsSqsConsumerModule } from '@robertoaraneda/nestjs-sns';
NestjsSnsModule.forRootAsync({
imports: [ConfigModule],
useFactory: async (configService: ConfigService) => ({
topicArn: 'arn',
snsConfig: {
region: "aws_region",
credentials: {
accessKeyId: "aws_access_key_id",
secretAccessKey: "aws_secret_access_key",
},
},
}),
inject: [ConfigService],
}),