This demo code is meant to demonstrate the Amazon RDS concept. For more information on RDS proxy, click here to get started. In case you're not familiar with AWS Lambda, click here to get started.
The lambda function depends on the following environment variables to be defined.
- Region
- RDS proxy endpoint
- Database Port
- The database username
The lambda also uses a lambda layer with pymysql installed. Run the below command to install pymysql
pip install pymysql
N.B Remember to edit the query in line 52