Lambda策略权限:如何从AWS控制台为lambda函数设置功能策略?

时间:2019-07-17 16:06:18

标签: javascript aws-lambda amazon-cognito

我可以使用lambda添加权限API https://docs.aws.amazon.com/lambda/latest/dg/API_AddPermission.html

添加权限

我从AWS控制台单击了lambda函数中的设计器按钮,但它仅显示API中的功能策略内容集,并且不可编辑。

我的要求是通过AWS控制台添加lambda权限。找不到任何参考。 有什么帮助吗?谢谢。

1 个答案:

答案 0 :(得分:1)

 - Go to Lambda console.
 - Check the role name that is attached to your lambda.
 - Go to IAM and click on roles on the left of the screen.
 - Search the role name that you figured out in step-2.
 - Add permission there.

希望这会有所帮助 谢谢。