【发布时间】:2021-08-30 23:47:28
【问题描述】:
我在 python 上使用 boto3 API,我遇到了这个问题。
An error occurred (InvalidParameterValueException) when calling the CreateFunction operation: The role defined for the function cannot be assumed by Lambda.
【问题讨论】:
-
this 是否回答您的问题或提供任何帮助?
-
@Avijeet 这不是 IAM 中设置错误的问题,而是在角色创建和附加它以与 lambda 一起使用之间需要一些延迟时间。我使用下面的答案来解决它。
标签: python aws-lambda boto3