Tuesday 9 May 2017

Testing Elasticache and Serverless AWS Lambda locally

I'm using serverless to create a lambda function using the nodejs template.

  1. To connect to my Elasticache Redis I setup a VPC and added the Security Group and Subnet Ids, as well as the region to my lambda serverless.yml.
  2. I deployed it and confirmed I could set and get a key from Redis.

When I try to serverless invoke local -f functionName, it always times out, so I have to deploy it to test it.

Is it possible to test this out locally with serverless?



via Claudiordgz

No comments:

Post a Comment