In this tutorial, I created an RDS instance and an AWS Lambda function that connected to the MySQL instance, created a table named "Employee" and inserted three rows into said table.
- Created an execution role for the Lambda function so that it had permissions to "manage network connections to a VPC."
- Created an RDS MySQL instance to use.
- Created a deployment package for the creation of our AWS Lambda function
- Tested the lambda function and verified success by looking at the AWS Cloudwatch logs in the AWS Lambda Console.