Skip to content
Serverless example
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.circleci
src/handlers
test
.env.test
.gitignore
LICENSE
Readme.md
package-lock.json
package.json
serverless.yml

Readme.md

Newsletter Subscription - Serverless example

How it works?

Users subscription & Welcome email

Screenshot

Engaging State Machine

Screenshot

Requirements

How to deploy?

  • Install dependencies -> npm i
  • Create the SENDGRID_API_KEY parameter on SSM Parameter Store. You can do this from the AWS Console or using the AWS CLI:
aws ssm put-parameter --name SENDGRID_API_KEY --type String --value 'API_KEY_HERE' --region us-east-2
  • Run sls deploy

How to run tests?

Just run npm test

How to remove the Stack?

Just run sls remove. If you have non-empty s3 buckets, you can add the --force option (use it carefully).

TODO

  • Improve IAMRole
  • Manage batch errors in mailer
You can’t perform that action at this time.