This project demonstrates a simple AWS Lambda function setup using C++ and Google Test for unit testing. The project includes:
- AWS Lambda function implementation.
- Unit tests for the Lambda functions.
- Dockerfile for building and running the project in an Amazon Linux environment.
- Docker
- CMake (version 3.17 or higher)
- AWS Lambda C++ Runtime
- Google Test
CMakeLists.txt: CMake configuration fileDockerfile: Dockerfile to build the environment and run testslambda_function.cpp: Implementation of Lambda functionslambda_function.h: Header file for Lambda functionslambda_function_test.cpp: Unit tests for Lambda functionsmain.cpp: Main executable to invoke Lambda functionsrun_all_tests.sh: Script to run all tests
docker build -t lambda-test-fun .
docker run --rm -it lambda-test-funThis command will execute the run_all_tests.sh script, which runs the Lambda functions and the unit tests.
This project demonstrates setting up AWS Lambda functions in C++, writing unit tests using Google Test, and using Docker to create a consistent build environment.