Questions tagged [aws-step-functions]

AWS Step Functions is a visual workflow service that helps developers use AWS services to build distributed applications, automate processes, orchestrate microservices, and create data and machine learning (ML) pipelines.

AWS Step Functions

AWS Step Functions is a visual workflow service that helps developers use AWS services to build distributed applications, automate processes, orchestrate microservices, and create data and machine learning (ML) pipelines.

Workflows

A workflow describes how people get work done from start to finish. A workflow consists of the steps and states in a process. Workflows can appear as a series of steps in a checklist, or as a diagram that visualizes those steps. Workflows promote logical separation between the control flow of your job's stepwise logic and the actual units of work that contain your unique business logic. With this division, you can manage, maintain, and scale the state machinery of your application separately from the core business logic. As your business requirements change, you can easily change application logic without changing the underlying state machinery, task dispatch, and flow control. Workflows

Amazon States Language

Step Functions implements the open source Amazon States Language (ASL), which is a JSON-based workflow definition language. ASL models workflows as a state machine, where you define a set of states with transitions between them. ASL includes several state types that support the flow of data through your workflow and control of the logic (e.g., Pass State, Choice State, Parallel State, and Fail State). Task states are used to execute work.

The state machine model for ASL has the advantage of making these workflows inherently visual. This is true for creation, editing, and sharing of workflow definitions but also for interpreting and observing historical behavior of workflow executions.

Step Functions Service Integrations

Step Functions includes direct integration with over 220 AWS Services. Optimized Service Integrations provide simplification to make it easier to integrate with services such as AWS Lambda, AWS Glue, Amazon SQS, and Amazon EMR. In addition, AWS SDK Service Integrations provide direct integration with over 11,000 API Actions from over 220 AWS Services.

Workflow Studio

Workflow Studio is a low-code visual workflow designer for Step Functions. Workflow Studio is available in the AWS Console and makes it easy build, edit, visualize, and share your workflows.

When to use this tag?

Use this tag when you have a question about the Step Functions service, about using the Step Functions service along with other AWS Services, or if you have questions about how to build cloud workflows in AWS. Also use this tag for questions you have about the Amazon States Language

Other Step Functions Resources

1505 questions
0
votes
1 answer

How do I run a shell script which is in ec2 instance from lamda step function?

I have created a three step functions 1. create an ec2 instance 2. generate APK 3. shutdown machine The first and third function works properly, but in the second function, I need to run a shell script which is in the ec2 instance to generate…
Nimesh
  • 1
  • 8
0
votes
1 answer

Output Data in Wait State of Step Function

I have an API (lambda+API Gateway) which sits in front of AWS batch and a step function. In my step function I store the job ID from a batch job. My step function closely resembles that of the Job Status Poller example in AWS whereby the step…
Derrops
  • 7,651
  • 5
  • 30
  • 60
0
votes
1 answer

Aws Pass Value from Lambda Trigger to Step Function

When using a Lambda Function to trigger a Step Function, how do you get the output of the function that triggered it?
0
votes
2 answers

Using step functions to trigger a lambda once another has finished executing

I have two lambdas. Lambda A is triggered once an SQS is populated with messages. I want Lambda B to execute once Lambda A is done executing. How can I do this? Lambda A will have multiple invocations running at the same time, does that make a…
0
votes
1 answer

How to pass Execution Id from State Machine to Lambda?

I start state machine execution by calling API Gateway endpoint. How can I receive execution id in the lambda or how to stop state machine execution in lambda if I don't have execution id? *this lambda is state machine state.
0
votes
1 answer

Can I use step functions to check whether a lambda is running?

I have a series of lambdas, one of which I want to execute once another lambda has executed and stopped executing. Is it possible, using step functions, to have a choice state which will check if a lambda is executing?
0
votes
1 answer

What is "hellostepfunc1" in the serverless documenation for setup AWS stepfunctions?

In these documentation from the serverless website - How to manage your AWS Step Functions with Serverless and GiTHUb - serverless-step-functions, we can find this word hellostepfunc1: in the serverless.yml file. I could not find reference to it. I…
IgorAlves
  • 5,086
  • 10
  • 52
  • 83
0
votes
0 answers

AWS CloudFormation for StepFunctions. Passing the DefinitionString as parameter

I am trying to create a CloudFormation for StepFunctions. I would like to pass the DefinitionString as a parameter. The json string is pretty big . The max cap is 4096 bytes. How do i handle to such cases where parameter is more than the upper cap…
0
votes
1 answer

AWS step function: static objects initialization doesn't carry to next state

I have StaticClass.variable that is written to by one state, and a different state accesses it later. However, once I get to the next state StaticClass is no longer initialized. Is there any work around? Passing only data through JSON is limited, I…
Sophia Tao
  • 27
  • 3
0
votes
2 answers

How to pass to header block of request from API Gateway to Step functions / lambda?

We got a requirement in AWS Api Gateway, that if we receive request with header (authorization) key exist in it, it should call one API and if authorization key ( key only not about keyValue) does not exist in header block it should call another…
0
votes
1 answer

How can I run 3 python scripts on my amazon ec2 machine one after the other using step functions?

I have 3 python scripts perfectly working individually on my EC2 machine, now i want all 3 of them to run one after the other automatically using AWS Step Functions. How can i possibly do that? I have done my part on the research going through…
Sarthak
  • 1
  • 1
0
votes
1 answer

How to Pass data between lambda functions in Step function?

I have spend some time evaluating Step functions for a scheduling engine that we are trying to build. My initial understanding is that: We will build the step function as a series of lambda functions which will be called in sequence. To trigger the…
0
votes
2 answers

Why use Step function(AWS) over setTimeout(Javascript) for scheduler functionality

I am trying to create a API service where any client can pass me his HTTP request and time in seconds after which he would like his HTTP request to be executed. I can think of two approaches here to make it happen: Create a lambda with nodeJS and…
0
votes
1 answer

Amazon States Language - Global and transaction cache

In a flow-based application development system, two levels of cache exist. First, a cache for the transaction that is currently triggered due to an input. This cache is destroyed as soon as transaction ends - either successfully or with a…
0
votes
1 answer

Python Step Functions API: get_activity_task seems to always timeout

I've got a lambda function like this: import boto3 import os import json step_functions = boto3.client('stepfunctions') workers_topic = boto3.resource('sns').Topic(os.environ.get("WORKERS_TOPIC_ARN")) def test_push_to_workers_sns(event, context): …