简体   繁体   中英

How to access Aurora mysql from lambda?

I'm currently trying to connect to an Aurora MySQL database from a lambda and retrieve record from a table.

All answers I researched and tried out require the use of Data api which is not supported anymore.(Including the ones on stack overflow)

Even the aws guides found are either outdated or for different scenarios

Notes:

  • I'm using Aurora MySQL V3.01.0
  • I'm using Burstable classes
  • I'm using Typescript

I believe you would want to use the MySQL client that is compatible with the lambda runtime you're deploying. Here's the list that MySQL maintains. https://www.mysql.com/products/connector/

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM