6
votes

I need to communicate elasticache(Redis engine) using AWS API gateway. I successfully connected the ElastiCache from lambda function in the same VPC. I cant connect from outside VPC.

So I tried to create an API gateway, and select integration type as AWS Service Proxy and AWS Service as ElastiCache.

This is the screenshot for creating an API gateway

screenshot

But I don't know, how to test this created API for executing Redis commands.

eg: SET A FOO

is it possible to communicate ElastiCache using API gateway?

1
How did you connect to Elasticache using Lambda. I am facing issue in connecting lambda to Elasticache Redis cluster. Can you please help?Avani Khabiya

1 Answers

10
votes

API Gateway service proxy is for proxying the AWS API, not the Redis API, so that's not going to work for you. You will have to create a Lambda function and use API Gateway Lambda integration.