This lambda function is triggered by new AWS SNS message to send email to the users using AWS SES.
Pre-requisites
- Java 11
- Maven
- AWS CLI with configured credentials
- Clone this repository to your local machine.
$ cd serverless$ mvn clean installto build the project.$ zip serverless.zip target/serverless-0.0.1-SNAPSHOT.jarto zip the execution file.- In AWS CLI,
$ aws s3 cp serverless.zip s3://{your S3 bucket name}to upload the zip to your S3 bucket. - In AWS CLI, type the following command to deploy the lambda function.
$ aws lambda update-function-code
--function-name "EmailNotification"
--s3-bucket {your S3 bucket name}
--s3-key serverless.zip