配置Amazon s3存储桶以运行在另一个帐户中创建的Lambda函数 [英] configure Amazon s3 bucket to run Lambda function created in another account

查看:105
本文介绍了配置Amazon s3存储桶以运行在另一个帐户中创建的Lambda函数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以将S3存储桶配置为运行在其他帐户中创建的Lambda函数?基本上,我想要完成的是将新项目添加到S3存储桶中时,我想在另一个帐户中运行Lambda函数

Is it possible to configure S3 bucket to run a Lambda function created in a different account? Basically what I'm trying to accomplish is that when new items are added to S3 bucket I want to run a lambda function in another account

推荐答案

您可以通过向S3存储桶提供完整的Lambda函数ARN来做到这一点.例如,在AWS控制台中的存储桶设置内:

You can do this by providing the full Lambda Function ARN to your S3 bucket. For example inside your bucket settings in the AWS Console:

本文将帮助您为跨帐户调用配置正确的IAM.另请参阅 AWS Lambda权限模型.请注意,据我所知,bucket和Lambda函数必须位于同一区域!

This article will help you configure the correct IAM for cross account invocation. Also take a look at the AWS Lambda Permissions Model. Note that as far as I know the bucket and the Lambda function have to be in the same region!

这篇关于配置Amazon s3存储桶以运行在另一个帐户中创建的Lambda函数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆