I have created a serverless Redshift cluster and want to use lambda to read/write the data from Redshift.
- Configured the VPC, subnet and security group in lambda
- same VPC, subnet and security group is present for serverless Redshift.
My lambda is timing out without establishing Redshift connection.
I referred Unable to connect to aws redshift from python within lambda and ensured below :
- Redshift Serverless VPC, subnet and security group is similar to lambda VPC, subnet and security group
- lambda role has AWSLambdaVPCAccessExecutionRole
but still, I unable to establish redshift connection from lambda. It's not throwing any error but timing out.