Wrapper for 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 services
if it is not already defined.
Import the plugin inside your defineConfig.
To define default and/or override Queue attributes see Plugin configs.
// config.ts
import { defineConfig } from "serverless-aws-lambda/defineConfig";
import { sqsPlugin } from "serverless-aws-lambda/sqs";
export default defineConfig({
plugins: [sqsPlugin(config)],
});