Serverless Offline Ses V2

homepage icon https://github.com/domdomegg/serverless-offline-ses-v2
Follow @domdomegg

Tracked

NPM Downloads Last Month
42
Issues
0
Stars
0
Forks
0
Watchers
0
Watch Star Fork Issue Download License NPM Build Status Coverage Status Contributors

Repo README Contents:

serverless-offline-ses-v2

Serverless plugin to run aws-ses-v2-local

Install

npm install --save-dev serverless-offline-ses-v2

Usage

Serverless configuration

Add it to your list of plugins, and optinally custom config

serverless.yaml:

plugins:
  - serverless-offline
  - serverless-offline-ses-v2

custom:
  serverless-offline-ses-v2:
    port: 8005

serverless.js / serverless.ts:

export default {
  plugins: [
    "serverless-offline",
    "serverless-offline-ses-v2",
  ],
  custom: {
    'serverless-offline-ses-v2': {
      port: 8005,
    }
  }
}

Running serverless-offline

Use serverless offline start instead of serverless offline, if you aren’t already. This is necessary for serverless-offline to fire off init and end lifecycle hooks so that we can start and stop the aws-ses-v2-local server correctly.