An example project for demonstration how boost AWS Amplify Functions by enabling:
- TypeScript support
- shared code between different lambdas
- Amplify CLI Codegen for both UI and lambdas
AWS Amplify Functions on steroids
- add yourself into
custom-roles.json
to be able to mock functions - add a new function by running
amplify add function
- make sure it's type is
commonjs
inpackage.json
- go over official guide here
- move
event.json
fromsrc
toevents
folder - add all
.js
files insrc
folder to.gitignore
- duplicate all lambdas deps as devDeps in root
package.json
- download and edit
amplify.yml
that is responsible for CI/CD - add Angular project to store shared code
- replace
rootDir
of lambdatsconfig.json
withrootDirs
- update
Handler
property in lambda CloudFormation template - add aliases to
tsconfig.json
in order to make imports shorter - add
ts-alias
toamplify:...
scripts from the official guide - manually edit
.graphqlconfig.yml
to enable multi-target codegen