AWS RDS integration with Lambda
A simple example to integrate a lambda with RDS using IAM role authentication
- install dependencies: npm install
- test: npm run test
- create .zip archive including node_modules folder and index.js file
- create your lambda assigning a custom defined role to permit it to connect to RDS - see rds-db:connect action policy
- upload lambda source from .zip archive
- test your lambda and call it from your API Gateway