我在帐户 A 中有 Step Function,并且在帐户 B 中有 lambda。但是在运行 step 函数时,它给出:
An error occurred while executing the state 'lambdaB' (entered at the event id #2). The resource belongs to a different account from the running execution.
有什么办法可以实现这种配置。
AWS Step Functions 无法(直接)调用不同账户中的 AWS Lambda 函数。
解决方法是调用 Lambda 函数来调用AssumeRole()
账户 B 中的 IAM 角色,然后使用返回的凭证调用账户 B 中的 Lambda 函数。
或者,在账户 B 中使用 API Gateway 以允许从外部源触发 Lambda 函数。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)