I am adding a feature to a piece of software where I want an AWS Lambda function to be triggered via and HTTP request via API Gateway, where the lambda function performs four functions with an ElastiCache cluster
- Posts a Key-Value Pair
- Gets a Key-Value Pair
- Deletes a Key-Value Pair
- Updates a Key-Value Pair
I know that ElastiCache is by default configured to a VPC and that I can configure an AWS Lambda function for the same. However, I want to know what other security measures I can take for the link between API gateway and AWS Lambda and the link between AWS Lambda and ElastiCache. For API Gateway and Lambda I was thinking of using OAuth or something along those lines. With Lambda to ElastiCache though, I am not sure how to ensure only that specific lambda function accesses the ElastiCache other than using a VPC. Are there any other measures I can take to ensure security at those two links?