Skip to content

Commit

Permalink
dump json
Browse files Browse the repository at this point in the history
  • Loading branch information
joelbalcaen committed Apr 19, 2024
1 parent ee49daa commit c0877cb
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lambdas/step_function_invoker/src/index.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit c0877cb

Please sign in to comment.