I am having issues connecting Elasticache from a Lambda function I have done the following:
- Created a new security group
- Assign security group to Lambda and assigned two private subnets of same VPC
- Created an Elasticache redis cluster and assigned the above security group
- Created a NAT gateway address, assigned and ElasticIP (for the above VPC)
Internet works and I verified this by opening stackoverflow.com URL. However Elasticache auto discovery times out. Is there any additional configuration that needs to be done?
Update I added inbound rule for Security Group to port 6379 and now still times out.