Reputation: 1125
I am trying to connect to Redshift cluster via python lambda function. I've checked the following for the lambda:
For the redshift cluster, it is in the same VPC as lambda and not publicly accessible. So in the lambda environment, I had used the redshift private IP.
However, when I try running the lambda, it timeout after the x seconds still.
Upvotes: 0
Views: 852
Reputation: 269091
The security configuration should be:
Lambda-SG
) that has the default "Allow All" rules for Outbound connectionsRedshift-SG
) that permits Inbound connections on port 5439 from Lambda-SG
That is, the Redshift-SG
should specifically reference the Lambda-SG
(by sg-
ID) in the Inbound rule. This will permit the Lambda function to communicate with the Redshift database.
Upvotes: 1