in src/workflow/build.py [0:0]
def lambda_handler(event, context):
wf = None
try :
properties = event['ResourceProperties']
config = json.loads(properties["config"])
config["context"] = context
wf = KernelBuildWorkflow(config, sm, cb)
results = wf.run()
cfnresponse.send(event, context, cfnresponse.SUCCESS, {"Results": json.dumps(results, default=datetime_to_str)})
except Exception as e:
cfnresponse.send(event, context, cfnresponse.FAILED, {"Error":f"{type(e)} {e}"})