Search code examples
amazon-web-servicesaws-lambdaamazon-dynamodb-dax

Unable to connect to AWS DAX


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.


Solution

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