aws-step-functions

How to combine context object with task input in step function Lambda invoke?

How to combine context object with task input in step function Lambda invoke? Question: aws_stepfunctions_tasks.LambdaInvoke.__init__ takes an input_path argument, which defaults to $ – the entire task input. How can I combine that with the context object ($$), since my Lambda needs information from both? Or do I need to use something else, like the …

Total answers: 2

How to tell programmatically that an AWS Step Function execution has been completed?

How to tell programmatically that an AWS Step Function execution has been completed? Question: I am triggering a Step Function execution via a Python cell in a SageMaker Notebook, like this: state_machine_arn = ‘arn:aws:states:us-west-1:1234567891:stateMachine:alexanderMyPackageStateMachineE3411O13-A1vQWERTP9q9’ sfn = boto3.client(‘stepfunctions’) .. sfn.start_execution(**kwargs) # Non Blocking Call run_arn = response[‘executionArn’] print(f"Started run {run_name}. ARN is {run_arn}.") and then in …

Total answers: 1