简体   繁体   English

如何获得从AWS Lambda到Redis的安全访问? 是否需要VPC?

[英]How to get secure access from AWS Lambda to Redis? Is VPC required?

I need to cache some data in Redis and get access to it from AWS Lambda. 我需要在Redis中缓存一些数据并从AWS Lambda获得对其的访问。 How can I get secure access from AWS Lambda to Redis (AWS Elastic cache)? 如何获得从AWS Lambda到Redis(AWS Elastic缓存)的安全访问?

Is VPC required? 是否需要VPC? Because I know that VPC increase 1) AWS Lambdas cold starts 2) increase bills (network usage). 因为我知道VPC增加1)AWS Lambdas冷启动2)增加账单(网络使用率)。

Yes, you will need a VPC to connect to Redis. 是的,您将需要一个VPC才能连接到Redis。

AWS allows using lambda functions to connect to Elasticache. AWS允许使用lambda函数连接到Elasticache。 Here is a link how it works - Tutorial: Configuring a Lambda Function to Access Amazon ElastiCache in an Amazon VPC 以下是其工作原理的链接- 教程:配置Lambda函数以访问Amazon VPC中的Amazon ElastiCache

Also, I agree with VPC increasing cold starts, you can probably work around that by doing warmups and sharing context across Lambda invocations. 此外,我也同意VPC增加冷启动,您可以通过进行预热并在Lambda调用之间共享上下文来解决此问题。 More details can be found here . 可以在此处找到更多详细信息。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM