将s3事件通知发送到特定lambda别名或版本的方法

时间:2018-08-20 07:42:28

标签: amazon-web-services amazon-s3 aws-lambda

作为问题的标题,是否可以将S3事件通知发送到特定的别名或lambda函数的版本?

我尝试将arn:aws:lambda:ap-northeast-1:xxxxx:function:xxxx:77之类的lambda ARN放入Lambda function ARN中,但返回以下错误不起作用。 (如果我从ARN中删除版本信息,则可以使用)

enter image description here

Unable to validate the following destination configurations. Not authorized to invoke function [arn:aws:lambda:ap-northeast-1:xxxxx:function:xxxx:77]. (arn:aws:lambda:ap-northeast-1:xxxxx:function:xxxx:77, null)

有什么建议吗?

1 个答案:

答案 0 :(得分:0)

根据来自Section 3.1.7 Connecting S3 to Lambda的信息,您可以从AWS Lambda控制台添加事件 ,它将起作用。

我对其进行了测试,并且可以正常运行... 版本号正确地附加到了ARN