Austin-Mazz / OmNom-OCR

Apache License 2.0
0 stars 0 forks source link

First Connection to MySQL Serverless Cluster #15

Closed CLarge-EZAC closed 2 years ago

CLarge-EZAC commented 2 years ago

See #9

I first tried to create a provisioned server database on RDS, but I couldn't figure out the security to make a connection from Lambda. Instead I went the simpler route and used Aurora Serverless to build a database cluster I could access via the Data API.

https://stackoverflow.com/questions/35468372/using-boto3-to-interact-with-amazon-aurora-on-rds ^CDK instructions to build the Aurora MySQL database and enable permissions to access from Lambda

https://stackoverflow.com/questions/35468372/using-boto3-to-interact-with-amazon-aurora-on-rds ^Inspiration for the Output Generator's Insert and Query statements.

https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/rds-data.html#RDSDataService.Client.execute_statement ^The documentation for the Data API using boto3