简体   繁体   English

如何从VPC中的Lambda调用AWS Rekognition

[英]How do I invoke AWS Rekognition from a Lambda within a VPC

I am working on a lambda function that needs to access RDS , S3 and Rekognition services from AWS. 我正在开发一个需要从AWS访问RDSS3Rekognition服务的lambda函数。

I gave S3 and Rekognition permissions via the AmazonS3FullAccess and the AmazonRekognitionFullAccess policies respectively and it worked fine 我分别通过AmazonS3FullAccessAmazonRekognitionFullAccess策略给出了S3Rekognition权限,它运行良好

The thing is that I could not access my Aurora instance inside RDS because it's inside a VPC 问题是我无法在RDS访问我的Aurora实例,因为它位于VPC内部

I changed my lambda network configurations so it would be able to access the VPC, and the Aurora connection worked as expected, but then the connection to Rekognition stopped working, whenever I invoke detectLabels for example it just hangs. 我更改了我的lambda网络配置,因此它可以访问VPC,并且Aurora连接按预期工作,但是当我调用detectLabels时,与Rekognition的连接停止工作,例如它只是挂起。

Am I missing some permission? 我错过了一些许可吗?

If you have no outside connection then you'll need to create an internet gateway through the VPC via NAT. 如果您没有外部连接,则需要通过VPC通过NAT创建Internet网关。

AWS has documentation for it, and there's a bit more discussion in another StackOverflow question . AWS有它的文档 ,在另一个StackOverflow问题中有更多的讨论。

暂无
暂无

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

相关问题 如何在账户 B 中调用 AWS Lambda function(此 Lambda 在 VPC 中)从 Z04A7DA3C5B04CAD85DA3EBB9231 中的账户 - How to invoke AWS Lambda function in account B (this Lambda in VPC) from Lambda in account A (Lambda in VPC) 在同一 vpc 中从 aws lambda 调用 aws lambda - Invoke aws lambda from aws lambda in same vpc 从 Lambda(无 VPC)调用 Lambda(VPC 内部)。如果 VPC 中没有连接互联网网关,我会收到来自 Lambda(VPC 内部)的响应吗? - Invoke Lambda (inside VPC) from Lambda(No VPC).Will I get a response from the Lambda(Inside VPC) if I do not have Internet Gateway attached in the VPC AWS Lambda function 通过 Function ZE6B391A8D2C4D45902A23A8B6585703 仅在 VPCD 内调用 - AWS Lambda function via Function URL invoke only within VPC 如何从 aws 中的 lambda function 调用对 a.network load balancer(nlb) vpc 端点的请求 - how to invoke a request to a network load balancer(nlb) vpc endpoint from a lambda function in aws 与Lambda一起使用的VPC Rekognition端点 - VPC Rekognition endpoint for use with Lambda 如何使用VPC端点在VPC内从Lambda发布到SNS? - How to publish to SNS from Lambda within VPC using VPC Endpoint? AWS Lambda 从 VPC 内访问 Secrets Manager - AWS Lambda access Secrets Manager from within VPC 通过 HTTPS 从 Lambda 连接到 VPC 内的 AWS Elasticsearch - Connecting to AWS Elasticsearch within VPC from Lambda over HTTPS AWS Lambda无法从VPC内部访问内部服务器 - AWS Lambda cannot reach internal servers from within VPC
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM