import json
def lambda_handler(event, context):
# TODO implement
return {
'statusCode': 200,
'body': json.dumps('Hello from First Lambda!')
}
import json
def lambda_handler(event, context):
# TODO implement
return {
'statusCode': 200,
'body': json.dumps('Hello from Second Lambda!')
}
{
"Comment": "A state machine that calls two Lambda functions in sequence",
"StartAt": "FirstFunction",
"States": {
"FirstFunction": {
"Type": "Task",
"Resource": "arn:aws:lambda:us-east-1:211125437318:function:FirstLambdaFunction",
"Next": "SecondFunction"
},
"SecondFunction": {
"Type": "Task",
"Resource": "arn:aws:lambda:us-east-1:211125437318:function:SecondLambdaFunction",
"End": true
}
}
}
Available Templates - 1
Available Templates - 2