Skip to content

diego1686/newsletter-subscription

Repository files navigation

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

About

Serverless example

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published