Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

226
Views
Is it possible to call AWS Step Functions from AWS JavaScript v3 SDK?

I posted this question on the forums back in August requesting when the V3 JavaScript API would add support to AWS Step Functions as it is in the V2 SDK. I haven't heard anything on that thread.

Is there an alternate solution that someone has which I can migrate away from the V2 SDK?

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Currently there is support for invoking Step Functions from AWS V3 Javascript sdk.

For standard invocation we can use StartExecutionCommand, or we can use StartSyncExecutionCommand for Synchronous Express step functions.

Here is an example for a standard invocation using Node.js:

const { SFNClient, StartExecutionCommand } = require("@aws-sdk/client-sfn");

const client = new SFNClient({ region: 'us-east-1' });

async function invoke(executionName, arn, input) {
    const command = new StartExecutionCommand({
        input: JSON.stringify(input),
        name: executionName,
        stateMachineArn: arn
    });
    return await client.send(command);
}

(async () => {
    console.log(await invoke('execution123', '' +
        'arn:aws:states:us-east-1:XXXXXXXXX:stateMachine:HelloWorld',
        {fistName: 'test'}));
})();
about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!