Connect AWS Lambda to RDS postgresql using Python



Video explains about creating aws lambda function, connecting the lambda function with postgresql, and deploying the aws lambda function

source

8 thoughts on “Connect AWS Lambda to RDS postgresql using Python”
  1. Hi I am facing the below error

    Response
    {
    "errorMessage": "Unable to import module 'state_handler': No module named 'pandas'",
    "errorType": "Runtime.ImportModuleError",
    "requestId": "3e41c9fc-1fc6-444c-beee-6966799fd687",
    "stackTrace": []
    }

    Function Logs
    START RequestId: 3e41c9fc-1fc6-444c-beee-696699fd687 Version: $LATEST
    [ERROR] Runtime.ImportModuleError: Unable to import module 'state_handler': No module named 'pandas'
    Traceback (most recent call last):END RequestId: 3e41c9fc-1fc6-44c-bee-6966799fd687
    REPORT RequestId: 3e4c9fc-1fc6-444c-beee-696799fd687 Duration: 1.05 ms Billed Duration: 2 ms Memory Size: 128 MB Max Memory Used: 35 MB

    Request ID
    3e41cfc-1fc6-44c-eee-696679fd687

  2. Thanks for the video. Could you please create a video implementing with API gateway.

  3. Getting error Unable to import module 'lambda_function': No module named 'psycopg2._psycopg'

Leave a Reply

Your email address will not be published.

Captcha loading...