Skip to content

baitian-spring2021/serverless

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

73 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Serverless - Lambda Function for Notification Emails

This lambda function is triggered by new AWS SNS message to send email to the users using AWS SES.

Installation

Pre-requisites

  • Java 11
  • Maven
  • AWS CLI with configured credentials

To Deploy the Lambda Locally

  1. Clone this repository to your local machine.
  2. $ cd serverless
  3. $ mvn clean install to build the project.
  4. $ zip serverless.zip target/serverless-0.0.1-SNAPSHOT.jar to zip the execution file.
  5. In AWS CLI, $ aws s3 cp serverless.zip s3://{your S3 bucket name} to upload the zip to your S3 bucket.
  6. 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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages