简体   繁体   English

AWS Step function 任务令牌 sendTaskSuccess 跨区域

[英]AWS Step function task token sendTaskSuccess cross region

I have case where the task token is received as an input from [Account A Region A] to the lambda deployed in [Account B Region B].我有这样的情况,任务令牌作为输入从 [Account A Region A] 接收到部署在 [Account B Region B] 中的 lambda。 When sending the sendTaskSuccess/sendTaskFailure , should the lambda in Account B create sfnClient with Region A for this to work?发送sendTaskSuccess/sendTaskFailure时,帐户 B 中的 lambda 是否应该为区域 A 创建sfnClient才能正常工作?

Are the task tokens region specific?任务令牌是否特定于区域?

The problem is we only receive the task token as an input in Account B (no info about the region).问题是我们只收到任务令牌作为帐户 B 中的输入(没有关于该区域的信息)。

Task tokens are region specific.任务令牌是特定于区域的。 I validated this by deploying the sample code.我通过部署示例代码验证了这一点。 The Sfn client has to be configured to the same AWS region as that of the state machine. Sfn 客户端必须配置到与 state 机器相同的 AWS 区域。 If its in a different region, you will get this error message ERROR Invalid Token: 'Invalid token'如果它在不同的区域,您将收到此错误消息ERROR Invalid Token: 'Invalid token'

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM