AWS Lambda 👉 RDS Proxy Tutorial 🔥 | IAM Authentication

Поделиться
HTML-код
  • Опубликовано: 27 авг 2024
  • You have an AWS Lambda function and you want to connect it to Amazon RDS Proxy using IAM Authentication.
    Can you do this using the lambda console?
    Amazon RDS Proxy is a fully managed, highly available database proxy that makes applications more scalable by pooling and sharing established database connections.
    AWS Lambda is a serverless, event-driven compute service that lets you run code for virtually any type of application or backend service without provisioning or managing servers. You can trigger Lambda from over 200 AWS services and software as a service (SaaS) applications, and only pay for what you use.

Комментарии • 22

  • @aswanthmadhav4562
    @aswanthmadhav4562 8 месяцев назад +2

    Still it's getting errorMessage": "Error 1045: Access denied for user 'admin'@'IP (using password: YES)" with Golang

  • @simcreation9286
    @simcreation9286 10 месяцев назад +1

    Hey i m using this because AWS Lambda to connect to a database, both within and outside of the AWS network, can be challenging due to the stateless and short-lived nature of Lambda functions. i used this RDS proxy but i need some ans as well like ..
    I also need the difference in time
    if you direct create connection from db vs you ask connection from proxy
    log the end time-start time for get connection call

    • @GokceDB
      @GokceDB  10 месяцев назад

      Going through RDS Proxy will definitely add some latency :)

    • @simranverma7480
      @simranverma7480 10 месяцев назад +1

      @@GokceDB can you please help what can i do

    • @GokceDB
      @GokceDB  10 месяцев назад

      @@simranverma7480 see if this helps: ruclips.net/video/gRvY1t4stuo/видео.html

  • @user-zw6fi2te1t
    @user-zw6fi2te1t 11 месяцев назад +1

    Hello Abi. Your channel and your content are very interesting. For a few weeks now I have been trying to configure an RDS Proxy with IAM authentication for an Aurora MySQL database. I'm trying this manually, connecting from an EC2 instance. However, I am unable to establish the connection. I would like to know if you can help me since I searched all over the web and I can't find the solution to the issue. Thanks in advance!

    • @GokceDB
      @GokceDB  11 месяцев назад +1

      Was the tutorial helpful?

    • @user-zw6fi2te1t
      @user-zw6fi2te1t 11 месяцев назад +1

      Unfortunately it does not apply to my case. I have an RDS AuroraMySQL instance. I already created an RDS proxy to connect to that db through an EC2 instance (they share the same VPC, and the ingress/egress rules are already configured). I have a test IAM user. However, when I generate the TOKEN and try to connect, it does nothing. It's probably a role/policy configuration problem but I can't figure it out. Is there any way can you help me? this is already beyond me.

    • @GokceDB
      @GokceDB  11 месяцев назад

      @@user-zw6fi2te1t Check the RDS proxy logs to see if you can find the error message. That'll help to get to the root cause of the problem. You might also need to check your VPC logs. Thanks.

  • @subterrain5293
    @subterrain5293 8 месяцев назад +2

    Hi, I followed the exact steps and getting the error: Access deined for user (using passwors no) while testing lambda.

    • @subterrain5293
      @subterrain5293 7 месяцев назад +1

      Sorry for replying late, the only thing that was missing was attaching policy to Lambda IAM role. Was able to get it working then. The steps in the video helped a lot, thanks.

    • @stuartrose1154
      @stuartrose1154 7 месяцев назад +1

      ​@subterrain5293 thanks for the update, I have the same issue... May I ask what policy you are referring to that needs adding?

  • @jack-zf6dv
    @jack-zf6dv 10 месяцев назад +1

    Brother need a help iam getting the below error, mysql_clear_password cannot be loaded , plugin not enabled

    • @GokceDB
      @GokceDB  10 месяцев назад

      See if this helps: stackoverflow.com/questions/48813665/aws-rds-using-im-policy-to-be-abbe-to-connect-from-another-user

  • @simcreation9286
    @simcreation9286 10 месяцев назад +1

    i need help can you please share the postgres connection code.

    • @GokceDB
      @GokceDB  10 месяцев назад

      I'll have to look into it.

    • @simranverma7480
      @simranverma7480 10 месяцев назад

      @@GokceDB yes please

  • @simranverma7480
    @simranverma7480 10 месяцев назад +1

    can you please help

    • @GokceDB
      @GokceDB  10 месяцев назад

      What's the question?

    • @simranverma7480
      @simranverma7480 10 месяцев назад +1

      @@GokceDB I have got a task in which I have to use rds proxy instead of aws lambda..Now all the database which is there in lambda is written, it has to be connected to rds proxy how to do please help.

    • @GokceDB
      @GokceDB  10 месяцев назад

      @@simranverma7480 see if this helps: ruclips.net/video/gRvY1t4stuo/видео.html

  • @randomperson90962
    @randomperson90962 4 месяца назад +1

    stop jumping on your chair...