aws-step-functions

botocore.exceptions.ClientError: An error occurred (AccessDeniedException) when calling the CreateStateMachine operation

痴心易碎 提交于 2020-04-16 02:15:36
问题 I am getting the following error when I try to create a state machine based on my state machine definition: botocore.exceptions.ClientError: An error occurred (AccessDeniedException) when calling the CreateStateMachine operation: 'role' is not authorized to create managed-rule. The creation code: state_machine = sfn_client.create_state_machine( name = 'state-machine', definition = state_machine_def, roleArn = SFN_ROLE, ) My IAM role that I use contains all necessary permissions as described

How to simplify complex parallel branch interdependencies for Step Functions

我们两清 提交于 2020-03-19 05:18:13
问题 I have the task of translating a list of dependent nodes into AWS Step Functions. The AWS Step Function definition allows for parallel branches or even branches nested to multiple levels deep. Unfortunately it does not support dependencies between tasks in the branches and therefore forces you to complete the parallel step before both results are available to subsequent tasks in the step function. In my diagram delow a simple parallel branch like shown in Graph 1 is easily supported by Step

How to simplify complex parallel branch interdependencies for Step Functions

时间秒杀一切 提交于 2020-03-19 05:15:46
问题 I have the task of translating a list of dependent nodes into AWS Step Functions. The AWS Step Function definition allows for parallel branches or even branches nested to multiple levels deep. Unfortunately it does not support dependencies between tasks in the branches and therefore forces you to complete the parallel step before both results are available to subsequent tasks in the step function. In my diagram delow a simple parallel branch like shown in Graph 1 is easily supported by Step

How to simplify complex parallel branch interdependencies for Step Functions

非 Y 不嫁゛ 提交于 2020-03-19 05:15:43
问题 I have the task of translating a list of dependent nodes into AWS Step Functions. The AWS Step Function definition allows for parallel branches or even branches nested to multiple levels deep. Unfortunately it does not support dependencies between tasks in the branches and therefore forces you to complete the parallel step before both results are available to subsequent tasks in the step function. In my diagram delow a simple parallel branch like shown in Graph 1 is easily supported by Step

AWS Step Function returns condition path references error

狂风中的少年 提交于 2020-03-05 03:33:26
问题 I am running step functions with two choices in AWS Step Functions. ... "ChoiceState": { "Type" : "Choice", "Choices": [ { "Variable": "$[0].input", "NumericEquals":1, "Next": "FirstMatchState" }, { "Variable": "$[0].input", "NumericEquals":2, "Next": "SecondMatchState" } ], "Default": "DefaultState" }, ... choice state entered with this input //ChoiceStateEntered { "name": "ChoiceState", "input": 1 } Error thrown { "error": "States.Runtime", "cause": "An error occurred while executing the

AWS SQS trigger Step Functions

自作多情 提交于 2020-01-13 10:13:50
问题 Quick question: Is it possible to trigger the execution of a Step Function after an SQS message was sent?, if so, how would you specify it into the cloudformation yaml file? Thanks in advance. 回答1: The first think to consider is this: do you really need to use SQS to start a Step Functions state machine? Can you use API gateway instead? Or could you write your messages to a S3 bucket and use the CloudWatch events to start a state machine? If you must use SQS, then you will need to have a

AWS Step Functions with multiple executions

不问归期 提交于 2019-12-31 05:29:13
问题 I have the following Step Function : { "Comment": "Test Lambda with Wait", "StartAt": "wait_using_seconds", "States": { "wait_using_seconds": { "Type": "Wait", "SecondsPath": "$.timer_seconds", "Next": "lambda_test" }, "lambda_test": { "Type": "Task", "Resource": "arn:aws:lambda:us-east-1:00000000000:function:XXXXXXXX", "End": true } } } This Step Function receives dynamic input data for the Lambda so it's enough flexible to be called for different purposes. I might have some Executions with

AWS SDK in java - How to get activities from worker when multple execution on going for a state machine

送分小仙女□ 提交于 2019-12-24 20:22:58
问题 AWS Step Function My problem is to how to sendTaskSuccess or sendTaskFailuer to Activity which are running under the state machine in AWS . My Actual intent is to Notify the specific activities which belongs to particular State machine execution. I successfully send notification to all waiting activities by activityARN. But my actual need is to send notification to specific activity which belong to particular state machine execution . Example . StateMachine - SM1 There two execution on going

Starting a StepFunction and exiting doesn't trigger execution

谁都会走 提交于 2019-12-24 19:46:39
问题 I have Lambda function tranportKickoff which receives an input and then sends/proxies that input forward into a Step Function . The code below does run and I am getting no errors but at the same time the step function is NOT executing. Also critical to the design, I do not want the transportKickoff function to wait around for the step function to complete as it can be quite long running. I was, however, expecting that any errors in the calling of the Step Function would be reported back

AWS Step Functions - Pass input to another task

半世苍凉 提交于 2019-12-11 17:30:16
问题 How can I pass my input to my output in a task in AWS Step Functions? I'm aware of this question, and the docs: If the value of ResultPath is null, that means that the state’s own raw output is discarded and its raw input becomes its result. But what I need is: Given my input { "input": "my_input" } And my lambda output { "output": "my_output" } I need to pass to the next state the following json: { "input": "my_input", "output": "my_output" } 回答1: Two suggestions comes to mind, either Use