简体   繁体   English

在不同地区触发一个Step Function

[英]Trigger a Step Function in different region

Is there any way to trigger a step function in one region from a step function in another region?有没有办法从另一个区域的步骤 function 触发一个区域的步骤 function? I tried using a lambda in the step function to call the step function in the other region but I believe this is not supported currently.我尝试在步骤 function 中使用 lambda 来调用其他区域中的步骤 function,但我认为目前不支持此操作。

If this is not possible, is there any AWS service that I can use to make this happen?如果这不可能,是否可以使用任何 AWS 服务来实现这一目标?

Directly invoke cross region stepfn from a step function is not possible.无法从步骤 function 直接调用跨区域 stepfn。 But I think you can write a lambda like this但我认为你可以这样写一个 lambda

async function executeStepFN(region, arn) {
  const sfn = new AWS.StepFunctions({
    region
  });
  await sfn.startExecution({
    stateMachineArn: arn,
    input: {},
  }).promise();
}


// call from us-east-1
await executeStepFN('us-west-2', 'arn:aws:........')

with this you can invoke anything from any region.有了这个,您可以从任何地区调用任何东西。

暂无
暂无

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

相关问题 AWS Step function 任务令牌 sendTaskSuccess 跨区域 - AWS Step function task token sendTaskSuccess cross region 如何触发步骤 function 并获得状态失败或成功 - how to trigger step function and get the status failed or success 我可以在成功完成另一个 Lambda function 后触发一个 Lambda function(不使用 Step Function)吗? - Can I trigger one Lambda function after successful completion of another Lambda function (without using Step Function)? 使用步骤 Function 在不同的帐户中运行 Glue Job - Use Step Function to run Glue Job in a different account 不同地区的 SageMaker 速度 - SageMaker Speed in different region 使用 Cloudformation 创建触发器以启动 lambda function 并在我将文件上传到 S3 存储桶时验证哪个区域可用 - Create trigger using Cloudformation to launch a lambda function and verify in what region is available when I upload a file in S3 bucket AWS SQS 触发器 Step Functions - AWS SQS trigger Step Functions 为什么 Azure Function 将日期解析为 MM/dd/yyyy,即使该地区具有不同的文化? - Why Azure Function parses date as MM/dd/yyyy even if the region has different culture? 使用 CDK 创建步骤 Function 并依赖于不同项目拥有的其他 AWS 资源(如 Lambda) - Using CDK to Create a Step Function With Dependencies on Other AWS Resources (Like a Lambda) Owned By Different Projects 手动触发预定或触发功能 - Manually trigger scheduled or trigger function
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM