serverless-aws-lambda
Version:
AWS Application Load Balancer and API Gateway - Lambda dev tool for Serverless. Allows Express synthax in handlers. Supports packaging, local invoking and offline ALB, APG, S3, SNS, SQS, DynamoDB Stream server mocking.
22 lines (15 loc) • 701 B
Markdown
Wrapper for [Local AWS SQS](https://github.com/Inqnuam/local-aws-sqs).
This plugin automatically creates all Queues declared in `serverless.yml` and enables SQS EventSourceMapping by setting AWS SQS Client config in [defineConfig](./defineConfig.md) `services` if it is not already defined.
Import the plugin inside your defineConfig.
To define default and/or override Queue attributes see [Plugin configs](../src/plugins/sqs/types.ts).
```js
// config.ts
import { defineConfig } from "serverless-aws-lambda/defineConfig";
import { sqsPlugin } from "serverless-aws-lambda/sqs";
export default defineConfig({
plugins: [sqsPlugin(config)],
});
```