[{"data":1,"prerenderedAt":68},["ShallowReactive",2],{"pattern-apigw-sfn":3},{"id":4,"title":5,"architectureURL":6,"cleanup":7,"contributors":12,"deploy":14,"description":17,"extension":18,"framework":19,"gitHub":20,"highlight":6,"introBox":29,"language":34,"level":35,"meta":36,"patternArch":37,"resources":51,"s3URL":6,"services":60,"stem":61,"testing":62,"videoId":28,"__hash__":67},"patterns\u002Fpatterns\u002Fapigw-sfn.json","Amazon API Gateway to AWS Step Functions",null,{"headline":8,"text":9},"Cleanup",[10,11],"1. Delete the stack: \u003Ccode>sam delete --stack-name STACK_NAME\u003C\u002Fcode>.","2. Confirm the stack has been deleted: \u003Ccode>aws cloudformation list-stacks --query \"StackSummaries[?contains(StackName,'STACK_NAME')].StackStatus\"\u003C\u002Fcode>",[13],"content\u002Fcontributors\u002Fbenjamin-smith.json",{"text":15},[16],"sam deploy --guided","Create an API Gateway HTTP APIs endpoint that starts a Step Functions syncronous Express Workflow","json","AWS SAM",{"template":21,"payloads":26},{"projectFolder":22,"repoURL":23,"templateURL":24,"templateFile":25},"apigw-sfn","https:\u002F\u002Fgithub.com\u002Faws-samples\u002Fserverless-patterns\u002Ftree\u002Fmain\u002Fapigw-sfn","serverless-patterns\u002Fapigw-sfn","template.yaml",[27],{"headline":28,"payloadURL":28},"",{"headline":30,"text":31,"test":28},"How it works",[32,33],"The SAM template deploys a HTTP APIs endpoint with an integration that syncronsouly invokes a Step Functions Express workflow and returns the response. The SAM template contains the minimum IAM resources required to run the application with logging enabled.","The HTTP's API endpoint can be called from an application (e.g. a web front end) to run an express workflow and return the result.","Node.js","300",{},{"icon1":38,"icon2":43,"line1":47},{"x":39,"y":40,"service":41,"label":42},20,50,"apigw","API Gateway HTTP API",{"x":44,"y":40,"service":45,"label":46},80,"sfn","Step Functions",{"from":48,"to":49,"label":50},"icon1","icon2","StartSyncExecution",{"headline":52,"bullets":53},"Additional resources",[54,57],{"text":55,"link":56},"Synchronous Express Workflows for AWS Step Functions","https:\u002F\u002Faws.amazon.com\u002Fblogs\u002Fcompute\u002Fnew-synchronous-express-workflows-for-aws-step-functions\u002F",{"text":58,"link":59},"Contact form processing with Synchronous Express Workflows","https:\u002F\u002Fgithub.com\u002Faws-samples\u002Fcontact-form-processing-with-synchronous-express-workflows",{"from":41,"to":45},"patterns\u002Fapigw-sfn",{"headline":63,"text":64},"Testing",[65,66],"Run the following command to send an HTTP `POST` request to the HTTP APIs endpoint. Note, you must edit the {HelloWorldApi} placeholder with the URL of the deployed HTTP APIs endpoint. This is provided in the stack outputs:","\u003Ccode>curl --location --request POST '{HelloWorldApi}' --header 'Content-Type: application\u002Fjson' --data-raw '{ \"IsHelloWorldExample\": \"Yes\" }'\u003C\u002Fcode>","HOwpGdeOwuMXQcRrZa53JZO1OzeNmK9f_K4JGFVDnm4",1779186907919]