Serverless Typescript
A Serverless plugin improving typescript developer experience. Lambda related configuration should be as close as possible from actually executed source code. Target typical lambda structure :
; /* * @Security({'custom:role': Role.Superadmin}) * @Path('GET', '/api/{myParam}/list') */;
Highlights
- [AWS] API Gateway HTTP input validation based on typescript interfaces
- [AWS] API Gateway routing from annotation
- [AWS] Cognito custom attributes checking on request
Install
$ npm install serverless-typescript --save-dev
Add the plugin to your serverless.yml
file:
plugins: - serverless-typescript