Api: support Step Function integration
+1
Any news on being able to run Step Functions locally @fwang?
+1
@riccardogiorato are you looking for API invoking a Step Function directly, or being able to live debug a Step Function locally?
You can already do the latter by passing sst.Function to tasks.LambdaInvoke, for example:
import * as tasks from "aws-cdk-lib/aws-stepfunctions-tasks";
const submitJob = new tasks.LambdaInvoke(this, 'Job', {
lambdaFunction: new sst.Function(...),
});
Let me know, and we can create a friendlier wrapper around this.
Thanks for the explanation @fwang Would be great if you can mention this in the documentation. Step functions is great for long running tasks and this is the only real component I was missing when I read the sst documentation.
We are wondering if we could use SST in my company but if we can't deploy Step Functions it won't be an option anymore :( +1 to add it on a next release
@LudoLab92 You can deploy Step Functions (and any AWS resources) in SST today. We just haven't created a "beautiful" syntax for it yet.
You can use any AWS CDK constructs in SST. Here's an example of how to do it currently — https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_stepfunctions-readme.html#example
Use sst.Function instead of lambda.Function, and live dev will work.
Let me know if it makes sense.
Let me know, and we can create a friendlier wrapper around this.
@fwang I would love to have this as well. We are building a step functions heavy application with SST and AWS CDK and this would come in so handy!