/OzvsServerless-Lambda-Build

Simple Lambda application with CloudFormation and CodeBuild templates

Primary LanguageJavaScript

cloudFunction-Round2

This codebase is created to experiment with AWS Lambda. The goal is to use SAM to deploy and publish the lambda function using Cloud formation.

Setup

CI/CD

Create AWS Code Pipeline for this repo. The source code already contains "buildspec.yml" file that can be used to provide build instructions to CodeBuild service. For details see buildspec.yml file.

Unit Tests

Run "npm test" to execute unit tests

Functional Tests

Generate S3 event using:

sam local generate-event s3 --bucket localTestBucket --key test-key > event_file.json

sam local invoke AddReviewDocumentToList -e event_file.json