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

Execute a lambda at a defined time which is based on user input

I have an online classroom where I need to execute a recorder lambda function at the start time of the class. The time of the execution depends on the time at which user creates a class. How can I run the function at that time? I found no option for…
0
votes
1 answer

Setting Resource Arn from Output of step of AWS Step Function

I have a step function where I want to start by getting the resourceArn for an ECS Cluster and then invoke tasks on that cluster. However, I'm having difficulty dynamically passing the arn from step to step. { "StartAt": "GetArnLambda", "States":…
LivingRobot
  • 883
  • 2
  • 18
  • 34
0
votes
2 answers

Cannot pass array to next task in AWS StepFunction

Working on an AWS StepFunction that gets an array of dates from a Lambda call, then passes to a Task that should take that array as a parameter to pass into a lambda. The Get Date Range task works fine and outputs the date array: { "rng": [ …
Kenobi
  • 465
  • 6
  • 13
0
votes
1 answer

AWS GetActivityTask beloging from the same state machine execution

Thanks in advance for your time and response. I have an AWS state machine with the following activities. Pull first available data file from an external FTP server Process the data (processing time can vary) Upload the processed data to another…
VenVig
  • 645
  • 1
  • 10
  • 14
0
votes
2 answers

How can I Pass arguments from AWS Lambda to AWS Step Function?

I have a Lambda code written in Python 3.6 for record in event['Records']: filename_from_event = record['s3']['configurationId'] filename = record['s3']['object']['key'] bucket = record['s3']['bucket']['name'] …
Parijat Bose
  • 380
  • 1
  • 6
  • 22
0
votes
2 answers

Perform AWS Lambda (with multiple data) only after a fixed amount of data is gathered

I'd like to execute a lambda function with multiple data, only after a fixed amount of data is gathered. The fixed amount would be, for example, to consider only a specific amount of messages, or messages that are sent in a specific temporal…
Nikaido
  • 4,443
  • 5
  • 30
  • 47
0
votes
1 answer

AWS synchronous/asynchronous flow

I have three steps in my AWS environment: Step 1 is synchronous Step 2 is executed after Step 1 and is asynchronous that takes input from Step 1 and encodes the audio file and puts the encoded file on S3. Step 3 should execute after Step 2 takes…
user1744147
  • 1,099
  • 13
  • 30
0
votes
1 answer

How to use the nextToken in the Step function's GetHistoryExecution?

I am trying to get all the execution history using lambda function and store it to DynamoDB. The function returns about 20 executions and a string value called NextToken that is to be used in the next call to get the rest of the executions. This is…
San
  • 307
  • 1
  • 3
  • 18
0
votes
1 answer

Invoke AWS Lambda via AWS Step Functions?

One Lambda is calling another in a synchronous manner, gets some data and continues in processing. This means, the costs are taken into account for both Lambdas in the call time period. Is it possible to use AWS Step Functions in this case without…
ttulka
  • 10,309
  • 7
  • 41
  • 52
0
votes
2 answers

How to store every AWS Step Function's execution to DynamoDB

Is there a way to store every execution to DynamoDB since AWS Step Function's execution will be deleted after a month.
0
votes
3 answers

Get status of asynchronous (InvocationType=Event) AWS lambda execution

I am creating an AWS step function where one of the step, let's call it step X, starts a variable number of lambdas. Since these lambda functions are long (they take between 1 and 10 minutes each to complete), I don't want to wait for them in step…
mabead
  • 2,171
  • 2
  • 27
  • 42
0
votes
1 answer

How to change AWS Step function's State if there's changes in external json status

I'm setting an Order process using step function and I want to execute its states and wait for 1min when a status will change. Using lambda I created a http/s request from external api that returns an Order object. "StartAt": "Process Order", …
San
  • 307
  • 1
  • 3
  • 18
0
votes
1 answer

Publish Input and Output Json to cloudwatch from Step Function States

Is it possible to publish the input and output json to each state in the State diagram of the step function to cloudwatch or something else directly? i.e. without using any lambda or anything?
hatellla
  • 4,796
  • 8
  • 49
  • 101
0
votes
1 answer

In AWS step functions, can I have multiple workflows share one same state object, and having the workflows work independently?

In AWS step functions, can I have multiple workflows share one same state object, and having the workflows work independently? Essentially what I want it to have multiple workflows, and they would all be triggered exactly the same way by an upstream…
0
votes
1 answer

Jsonpath - Accessing array item using expression

I am using AWS Step Functions which utilizes JSONPath for providing JSON paths. I have the following input : { "response": { "isSuccess": true, "error": "", "body": { "count": 2, "fields": [ { …
Furqan Shaikh
  • 371
  • 2
  • 4
  • 13