[{"data":1,"prerenderedAt":71},["ShallowReactive",2],{"pattern-terraform-lambda-sfn":3},{"id":4,"title":5,"architectureURL":6,"cleanup":7,"contributors":10,"deploy":12,"description":16,"extension":17,"framework":18,"gitHub":19,"highlight":6,"introBox":25,"language":29,"level":30,"meta":31,"patternArch":32,"resources":46,"s3URL":6,"services":6,"stem":66,"testing":67,"videoId":6,"__hash__":70},"patterns\u002Fpatterns\u002Fterraform-lambda-sfn.json","Invoke an AWS Step Functions workflow from AWS Lambda",null,{"text":8},[9],"terraform destroy",[11],"content\u002Fcontributors\u002Fanton-babenko.json",{"text":13},[14,15],"terraform init","terraform apply --auto-approve","The pattern creates a Lambda function, and a Step Functions workflow, a Log group and the IAM resources required to run the application.","json","Terraform (with modules)",{"template":20},{"repoURL":21,"templateURL":22,"projectFolder":23,"templateFile":24},"https:\u002F\u002Fgithub.com\u002Faws-samples\u002Fserverless-patterns\u002Ftree\u002Fmain\u002Fterraform-lambda-sfn","serverless-patterns\u002Fterraform-lambda-sfn","terraform-lambda-sfn","main.tf",{"headline":26,"text":27},"How it works",[28],"A Lambda function uses the AWS SDK to asyncronously invoke the Step Functionsworkflow, passing the event body. The Step Functionsworkflow showcasing the different States.","Python","200",{},{"icon1":33,"icon2":38,"line1":42},{"x":34,"y":35,"service":36,"label":37},20,50,"lambda","AWS Lambda",{"x":39,"y":35,"service":40,"label":41},80,"sfn","AWS Step Functions",{"from":43,"to":44,"label":45},"icon1","icon2","",{"bullets":47},[48,51,54,57,60,63],{"text":49,"link":50},"Terraform AWS Lambda module","https:\u002F\u002Fgithub.com\u002Fterraform-aws-modules\u002Fterraform-aws-lambda",{"text":52,"link":53},"Terraform AWS Lambda examples","https:\u002F\u002Fgithub.com\u002Fterraform-aws-modules\u002Fterraform-aws-lambda\u002Ftree\u002Fmaster\u002Fexamples",{"text":55,"link":56},"Terraform AWS Step Functions module","https:\u002F\u002Fgithub.com\u002Fterraform-aws-modules\u002Fterraform-aws-step-functions\u002F",{"text":58,"link":59},"Terraform AWS Step Functions examples","https:\u002F\u002Fgithub.com\u002Fterraform-aws-modules\u002Fterraform-aws-step-functions\u002F\u002Ftree\u002Fmaster\u002Fexamples",{"text":61,"link":62},"AWS Step Functions Developer Guide","https:\u002F\u002Fdocs.aws.amazon.com\u002Fstep-functions\u002Flatest\u002Fdg\u002Fwelcome.html",{"text":64,"link":65},"AWS Lambda Developer Guide","https:\u002F\u002Fdocs.aws.amazon.com\u002Flambda\u002Flatest\u002Fdg\u002Fwelcome.html","patterns\u002Fterraform-lambda-sfn",{"text":68},[69],"See the GitHub repo for detailed testing instructions.","qFSj3ZTI9jfti-kaLhsj8cOuWbzPeHviN6GQQncl9rI",1779273340104]