0

I am getting this error when I execute my lambda, it raises DaxClientError('Failed to configure cluster endpoints from {}'.format(seeds), DaxErrorCode.NoRoute)

I am trying to connect to my DAX cluster from Amazon Lambda (written in python). I have installed amazon-dax-client to a folder, placed my lambda file there, made package and uploaded as zip file when i test lambda it throws above error.

iGian
  • 11,023
  • 3
  • 21
  • 36
Aamir Sheraz
  • 55
  • 1
  • 9

3 Answers3

0

Your lamda function needs to be in the same VPC as the DAX cluster. Otherwise, it won't be able to connect.

0

There is a blog post on using Amazon DAX from AWS Lambda. The sample code is for NodeJS but the Lambda/VPC configuration applies no matter what language is used.

Jeff Hardy
  • 7,632
  • 24
  • 24
  • Yes, this blog post is super helpful, actually i was able to fix the problem by making dax cluster and lamda in the same VPC – Aamir Sheraz Sep 05 '18 at 11:14
0

Don't forget to add to your "security groups" inbound rules to allow TCP port 8111