Skip to content

Instantly share code, notes, and snippets.

@ronyis
Created May 30, 2018 13:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save ronyis/b51c5bb20ffb7c0dae2de85fa21e4209 to your computer and use it in GitHub Desktop.
Save ronyis/b51c5bb20ffb7c0dae2de85fa21e4209 to your computer and use it in GitHub Desktop.
import os
import json
import boto3
client = boto3.client('stepfunctions')
def run(event, context):
client.start_execution(
stateMachineArn=os.environ['CF_MyStateMachine'],
name=str(context.aws_request_id),
input=json.dumps(event)
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment