Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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 ? 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.

If this is not possible, is there any AWS service that I can use to make this happen ?

like image 684
sxp Avatar asked Dec 31 '25 11:12

sxp


1 Answers

Directly invoke cross region stepfn from a step function is not possible. But I think you can write a lambda like this

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.

like image 193
James Avatar answered Jan 04 '26 20:01

James



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!