[{"data":1,"prerenderedAt":56},["ShallowReactive",2],{"workflow-call-microservice-api":3},{"id":4,"title":5,"cleanup":6,"contributors":10,"deploy":12,"description":15,"diagram":16,"extension":17,"framework":18,"gitHub":19,"introBox":28,"level":37,"meta":38,"resources":39,"s3URL":42,"services":43,"simplicity":47,"stem":48,"testing":49,"type":53,"usecase":54,"videoId":27,"__hash__":55},"workflows\u002Fworkflows\u002Fcall-microservice-api.json","Call an AWS Fargate microservice with Amazon API Gateway",{"headline":7,"text":8},"Cleanup",[9],"1. Delete the stack: \u003Ccode>sam delete\u003C\u002Fcode>.",[11],"content\u002Fcontributors\u002Fmohamed-salah.json",{"text":13},[14],"sam deploy","This demonstrates how to use AWS Step Functions to make a call to Amazon API Gateway to interact with a service on AWS Fargate and to check whether the call succeeded.","\u002Fassets\u002Fimages\u002Fworkflows\u002Fcall-microservice-api.png","json","AWS SAM",{"template":20,"payloads":25},{"repoURL":21,"templateDir":22,"templateFile":23,"ASL":24},"https:\u002F\u002Fgithub.com\u002Faws-samples\u002Fstep-functions-workflows-collection\u002Ftree\u002Fmain\u002Fcall-microservice-apigw\u002F","call-microservice-apigw","template.yml","statemachine\u002Fstatemachine.asl.json",[26],{"headline":27,"payloadURL":27},"",{"headline":29,"text":30},"How it works",[31,32,33,34,35,36],"In this project, Step Functions calls an API Gateway endpoint, checking the response status code, and notifying a specified SNS topic of the success or failure of the API call.","The project involves the following steps:","Calls an API Gateway HTTP endpoint using an IAM role for authentication.","Checks if the response status code is 200 using a Choice state.","If the response status code is 200, publishes a success message to an SNS topic using a Task state.","If the response status code is not 200, publishes a failure message to the same SNS topic using a Task state.","200",{},{"headline":40,"bullets":41},"Additional resources",[],null,[44,45,46],"lambda","sfn","apigw","1 - Fundamental","workflows\u002Fcall-microservice-api",{"headline":50,"text":51},"Testing",[52],"See the GitHub repo for detailed testing instructions.","Standard","Microservices","26z8Z27ki7YqEjsOsarwfQRNfpQ7aF4bnLlM3jKP_DU",1781346948469]