UNPKG

maestro

Version:

Maestro is a framework for quickly bootstrapping serverless orchestration workflows with AWS Step Functions

12 lines (8 loc) 333 B
const { stepFunctions } = require("../services.js"); const getStateMachineArn = async (name) => { const stateMachines = (await stepFunctions.listStateMachines().promise()) .stateMachines; return stateMachines.find((stateMachine) => stateMachine.name === name) .stateMachineArn; }; module.exports = getStateMachineArn;