From c0877cbc1c8a8c5f0d1536475f537d9c814e01f1 Mon Sep 17 00:00:00 2001 From: Joel Balcaen Date: Fri, 19 Apr 2024 15:25:16 -0300 Subject: [PATCH] dump json --- lambdas/step_function_invoker/src/index.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lambdas/step_function_invoker/src/index.py b/lambdas/step_function_invoker/src/index.py index 9129648..59ef61c 100644 --- a/lambdas/step_function_invoker/src/index.py +++ b/lambdas/step_function_invoker/src/index.py @@ -13,12 +13,16 @@ @metrics.log_metrics def lambda_handler(event, context): + """ + This function is responsible for invoking the state machine with the given event. + The state machine arn is defined in the environment variable STATE_MACHINE_ARN. + """ logger.info(event) try: state_machine_execution_result = step_functions_client.start_execution( stateMachineArn=STATE_MACHINE_ARN, - input=event, + input=json.dumps(event), ) logger.info(state_machine_execution_result)