Connect to ElastiCache cluster using Api Gateway


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


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

is it possible to communicate ElastiCache using API gateway?


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.

Leave a Reply