[{"data":1,"prerenderedAt":66},["ShallowReactive",2],{"pattern-appsync-sqs-cdk":3},{"id":4,"title":5,"architectureURL":6,"cleanup":7,"contributors":13,"deploy":15,"description":18,"extension":19,"framework":20,"gitHub":21,"highlight":6,"introBox":30,"language":34,"level":35,"meta":36,"patternArch":37,"resources":50,"s3URL":6,"services":59,"stem":60,"testing":61,"videoId":29,"__hash__":65},"patterns\u002Fpatterns\u002Fappsync-sqs-cdk.json","AWS AppSync to Amazon SQS",null,{"headline":8,"text":9},"Cleanup",[10,11,12],"1. Delete the stack: \u003Ccode>npx cdk destroy\u003C\u002Fcode>.","2. Confirm the stack has been deleted: \u003Ccode>aws cloudformation list-stacks --query \"StackSummaries[?contains(StackName,'STACK_NAME')].StackStatus\"\u003C\u002Fcode>.","3. You see a message confirming DELETE_COMPLETE.",[14],"content\u002Fcontributors\u002Fbrice-pelle.json",{"text":16},[17],"cdk deploy","Create an AppSync GraphQl API that sends messages to an SQS queue","json","AWS CDK",{"template":22,"payloads":27},{"projectFolder":23,"repoURL":24,"templateURL":25,"templateFile":26},"cdk-appsync-sqs","https:\u002F\u002Fgithub.com\u002Faws-samples\u002Fserverless-patterns\u002Ftree\u002Fmain\u002Fcdk-appsync-sqs","serverless-patterns\u002Fcdk-appsync-sqs","cdk\u002Flib\u002Fmain.ts",[28],{"headline":29,"payloadURL":29},"",{"headline":31,"text":32},"How it works",[33],"The CDK template creates an AppSync API with an Amazon SQS as HTTP data source. An SQS queue is created, along with an IAM role that provides the AppSync API permission to send messages to that specific queue. Using the sendMessage query, you can add a message to the queue.","Node.js","300",{},{"icon1":38,"icon2":43,"line1":47},{"x":39,"y":40,"service":41,"label":42},20,50,"appsync","AWS AppSync",{"x":44,"y":40,"service":45,"label":46},80,"sqs","SQS",{"from":48,"to":49,"label":29},"icon1","icon2",{"headline":51,"bullets":52},"Additional resources",[53,56],{"text":54,"link":55},"Simplify access to multiple microservices with AWS AppSync and AWS Amplify","https:\u002F\u002Faws.amazon.com\u002Fblogs\u002Fmobile\u002Fappsync-microservices\u002F",{"text":57,"link":58},"HTTP resolvers","https:\u002F\u002Fdocs.aws.amazon.com\u002Fappsync\u002Flatest\u002Fdevguide\u002Ftutorial-http-resolvers.html",{"from":41,"to":45},"patterns\u002Fappsync-sqs-cdk",{"headline":62,"text":63},"Testing",[64],"See the GitHub repo for detailed testing instructions.","NPn7pGWyIPUqGwfNYmwdbcthX3X9CBnKc59yvDyDwAg",1782383725657]