aws-step-functions

Step function exceeding the maximum number of characters service limit

為{幸葍}努か 提交于 2020-08-24 06:17:19
问题 My state in a step function flow returns an error of state/task returned a result with a size exceeding the maximum number of characters service limit. . In the step function documentation, the limit for characters for input/output is 32,768 characters . Upon checking the total characters of my result data if falls below the limit. Are there any other scenarios that it will throw that error? Thanks! 回答1: 32KB is the maximum size of the payload that can be passed between states. You could also

How to avoid simultaneous execution in aws step function

故事扮演 提交于 2020-06-15 23:14:06
问题 Currently I have a use case that a cloud watch rule will trigger a step function every 5 minutes. I want to have a logic to skip starting another execution if there is one execution already running in step function. Any way to do that? 回答1: Instead of having your CloudWatch event rule trigger the Step Function directly, you could have it trigger a Lambda function. The Lambda function could check if there are any Step Function executions in the RUNNING state, via the ListExecutions API. If not

How to avoid simultaneous execution in aws step function

萝らか妹 提交于 2020-06-15 23:07:50
问题 Currently I have a use case that a cloud watch rule will trigger a step function every 5 minutes. I want to have a logic to skip starting another execution if there is one execution already running in step function. Any way to do that? 回答1: Instead of having your CloudWatch event rule trigger the Step Function directly, you could have it trigger a Lambda function. The Lambda function could check if there are any Step Function executions in the RUNNING state, via the ListExecutions API. If not

Using the Output JSON data returned from a nested Step Function

不羁的心 提交于 2020-05-26 03:50:17
问题 Im creating a POC with nested Step Functions (SF) and have hit the following issue. I have SF A that has a sync task that starts the execution of SF B (using the recently announced syntax) & waits for it to complete. SF B returns a valid JSON output In SF A, I can see (from the output of the task that calls SF B) the correct fields returned. e.g Status, ExecutionArn as well as the Output. I then want to execute a Choice Task in SF A that uses a field returned from SF B. However the json in

AWS Step Functions: Combine task input with *partial* task output

為{幸葍}努か 提交于 2020-04-30 05:12:25
问题 I'm working on AWS Step functions. I've read the documentation on InputPath, OutputPath, and ResultPath. My problem is that I want to combine values from the input to a Lambda Task with a partial output from the task. The input to the task is similar to below. I want to continue passing these values on to subsequent tasks. { "previous_task_result": 100, "next_task_input": "asdf" } What I would like, is to have the output of my Lambda Task look like this: { "previous_task_result": 100, "next

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

限于喜欢 提交于 2020-04-16 02:20:19
问题 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

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

非 Y 不嫁゛ 提交于 2020-04-16 02:16:00
问题 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