TODO: add a description
- TypeScript
- ...
- Docker
- npm Package Manager
- AWS CLI
- ...
- git
- npm
- ...
In order to simulate the Lambda function triggering in local environment, you must install AWS SAM CLI. If you haven't installed AWS SAM client, please refer to this guide.
After the installation of AWS SAM client, initialize the Lambda function code running this command:
sam build -t utilities/test.sam.yaml
After the compilation, execute this command for run the Lambda function with AWS SAM client:
sam local invoke -e utilities/events/lambda.test.json TestFunction
This command will generate and run a Docker container with the Lambda code in it using a custom event defined in the passed JSON.
For run the unit tests, execute the command:
npm run test
Made with ❤️ by PagoPa S.p.A.
See CODEOWNERS
file