Created
May 30, 2018 13:23
-
-
Save ronyis/b51c5bb20ffb7c0dae2de85fa21e4209 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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