9 ACCESS_ID = os.environ.get(
"AWS_KEY_ID")
10 ACCESS_KEY = os.environ.get(
"AWS_KEY_SECRET")
11 REGION = os.environ.get(
"REGION")
12 step_functions_client = boto3.client(
"stepfunctions", aws_access_key_id=ACCESS_ID, aws_secret_access_key=ACCESS_KEY, region_name=REGION)
15 "client_id": client_id,
16 "results_bucket": results_bucket,
17 "results_path": results_path
19 client_id = client_id.replace(
" ",
"-")
20 path = results_path.replace(
"/",
"-")
21 execution_name =
'{}-{}-{}-{}'.format(path,client_id,
'ottito', int(time.time()))
22 response = step_functions_client.start_execution(
23 stateMachineArn=os.environ.get(
'RESULTS_STEP_FUNCTION_ARN'),
25 input=json.dumps(input_parameters)