How to connect AWS Lambda to a MySQL database to update it? (using RDS proxy)

6 Comments



In this video we connect from a lambda function to an RDS database, first directly and then by using RDS proxy.

⚡️ More Lambda Videos:
– How to install npm modules in AWS Lambda? https://youtu.be/RnFowJ130pc
– AWS Lambda versioning & aliases – How to deploy using versions + API Gateway https://youtu.be/OGMaE63YgEU
– How to use layers with Lambda functions? https://youtu.be/i12H4cUFudU
– How to deploy a lambda function using github actions? https://youtu.be/UQiRhKgQ5X0
– How to use environment variables with a Lambda function? (and how to encrypt them with KMS) https://youtu.be/J9QKS0NrH7I
– How to build a chat using Lambda + WebSocket + API Gateway? (nodejs) https://youtu.be/BcWD-M2PJ-8
– How to use ImageMagick with a Lambda function on AWS? https://youtu.be/JdJo-_Y1ZIM
– How to pass a url query string or a route parameter to AWS Lambda from API Gateway? https://youtu.be/V3i25clEvSE
– What is an AWS lambda function? https://youtu.be/okEvGTKpWl8
– How to restrict access to a static S3 site using HTTP Basic Auth? https://youtu.be/gc3w_bMtcQE
– AWS Lambda intro – versions, aliases, concurrency, triggers, logs and monitoring https://youtu.be/BFvF2oAnNpY

⚡️ LambdaBuddy:
Check out the tool I’ve built to manage the deployment of lambda functions:
https://lambdabuddy.com

⚡️ Github:
– https://github.com/alexkrkn

#lambda #mysql #nodejs

source

6 Comments
    • blank
      Gaurav kumar
      Jun 23, 2022 09:12 am Reply

      I am getting acess denied error for xx_user.I am using db cred for authentication not Iam auth.

    • blank
      Rushikesh Shete
      Jun 23, 2022 09:12 am Reply

      I have already mysql database, how can i connect it to aws lambda

    • blank
      Ethan Tun
      Jun 23, 2022 09:12 am Reply

      if you choose IAM authentication when you create RDS proxy, that means you don't need to put mysql username and password in the lambda function?

    • blank
      Shikhar Wankar
      Jun 23, 2022 09:12 am Reply

      Awesome man

    • blank
      KhanDoor
      Jun 23, 2022 09:12 am Reply

      This is an excellent lesson! Thank you!

Leave us a comment