Using psycopg2 with Lambda to Update Redshift (Python)

前端 未结 7 1753
情深已故
情深已故 2020-11-27 19:36

I am attempting to update Redshift from a Lambda function using python. To do this, I am attempting to combine 2 code fragments. Both fragments are functional when I run the

7条回答
  •  广开言路
    2020-11-27 19:49

    To use psycopg2 with aws lambda, use import aws-psycopg2

    As aws supports psycopg2 but the way to import psycopg2 is a bit different as aws itself has a compiled library for psycopg2, so we need to import is using aws-psycopg2

提交回复
热议问题