Connect to an ElastiCache cluster using Api Gateway

I need to tell the elastic (Redis engine) using the AWS API gateway. I have successfully linked ElastiCache from a lambda function in the same VPC. I cannot connect from outside the VPC.

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

This is a screenshot for creating an API gateway.

screenshot

But I do not know how to test this created API to execute Redis commands.

eg: SET A FOO 

Is it possible to bind ElastiCache using an API gateway ?

+5
source share
1 answer

The Gateway API Proxy is designed to proxy AWS APIs, not Redis APIs, so that it does not work for you. You will need to create a Lambda function and use the Lambda API Gateway integration.

+8
source

All Articles