jkehler / awslambda-psycopg2

1.1k stars 360 forks source link

python3.7 with ssl support #45

Closed cklyyung closed 5 years ago

cklyyung commented 5 years ago

The psycopg2-3.7 package in the repo wasn't compiled with ssl support, so I created a package that was. Following the steps in the readme, I built this in an AWS Linux box. I was able to successfully use the compiled package as a layer for my lambda function (which required ssl support).

cklyyung commented 5 years ago

@jkehler bump

dstanna-dstuk commented 5 years ago

A thumbs up from me - Seems that this change allows for use of IAM temporary passwords with Redshift (from GetClusterCredentials - https://stackoverflow.com/questions/44243169/connect-to-redshift-using-python-using-iam-role). Otherwise the resulting password is rejected on connect.

jkehler commented 5 years ago

@cklyyung Thanks for the contribution. I'll go ahead and merge this one in.