This example includes several Lambda functions, a Kinesis stream and an API Gateway
This example builds on the implementation of the Trilateral API presented in Cloud Native Development Patterns and Best Practices
- Execute:
npm install - Execute:
npm run dp:dev:e - In the AWS console review the various tabs for the following:
- Cloudformation Stack:
cndp-trilateral-api-dev - Lambda functions:
cndp-trilateral-api-dev-* - API Gateway:
cndp-trilateral-api
- Cloudformation Stack:
- Invoke POST api from the API Gateway console by pressing the
Invoke URLlink:- APIs > dev-cndp-trilateral-api (...) > Stages > dev > /things > POST
- Inspect the DynamoDB
dev-cndp-trilateral-api-t1table for the new contents- Copy an
idfor step 6 - Verify that none of the records are flagged as deleted
- Copy an
- Inspect the Lambda Monitoring tab and logs for function:
cndp-trilateral-api-dev-publish - Invoke GET api from the API Gateway console by pressing the
Invoke URLlink:- APIs > dev-cndp-trilateral-api (...) > Stages > dev > /things/{id} > GET
- Inspect the Lambda Monitoring tab and logs for function:
cndp-trilateral-api-dev-query - Invoke Lambda function
cndp-trilateral-api-dev-produce-category-deletedfrom the AWS console by pressing the Test button- Accept the defaults if asked.
- Inspect the Lambda Monitoring tab and logs for function:
cndp-trilateral-api-dev-subscribe - Inspect the DynamoDB
dev-cndp-trilateral-api-t1table for the new updates- Verify that the records with the "widgets" category are flagged as deleted
- Execute:
npm run rm:dev:e