Conecting AWS Lambda to Redshift - Times out after 60 seconds

前端 未结 2 449
忘掉有多难
忘掉有多难 2020-12-19 07:50

I created an AWS Lambda function that:

  • logs onto Redshift via JDBC URL
  • runs a query

Locally, using Node, I can successfully connect to

2条回答
  •  旧时难觅i
    2020-12-19 08:15

    I find it's either you open your Redshift security group public to all sources, or none. Because a Lambda function isn't running on a fixed address or even a fixed range of IP addresses, which is completely transparent to users (AKA server-less).

    I just saw Amazon announced the new Lambda feature to support VPC yesterday. I guess if we can run a Redshift cluster in a VPC, this could solve the problem.

提交回复
热议问题