[{"data":1,"prerenderedAt":67},["ShallowReactive",2],{"pattern-apigw-lambda-iot-cdk":3},{"id":4,"title":5,"architectureURL":6,"cleanup":7,"contributors":12,"deploy":14,"description":17,"extension":18,"framework":19,"gitHub":20,"highlight":6,"introBox":26,"language":32,"level":33,"meta":34,"patternArch":35,"resources":54,"s3URL":6,"services":6,"stem":62,"testing":63,"videoId":6,"__hash__":66},"patterns\u002Fpatterns\u002Fapigw-lambda-iot-cdk.json","Amazon API Gateway to AWS Lambda to AWS IoT",null,{"text":8},[9,10,11],"1. Delete the stack: \u003Ccode>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.",[13],"content\u002Fcontributors\u002Fashu-joshi.json",{"text":15},[16],"cdk deploy","Create an API Gateway REST API to invoke a Lambda function to publish to IoT Core.","json","AWS CDK",{"template":21},{"projectFolder":22,"repoURL":23,"templateURL":24,"templateFile":25},"apigw-lambda-iot-cdk","https:\u002F\u002Fgithub.com\u002Faws-samples\u002Fserverless-patterns\u002Ftree\u002Fmain\u002Fapigw-lambda-iot-cdk","serverless-patterns\u002Fapigw-lambda-iot-cdk","lib\u002Fapigw-lambda-iot-stack.ts",{"headline":27,"text":28},"How it works",[29,30,31],"This pattern creates an Amazon API Gateway REST API endpoint, that invokes a Lambda function.","The Lambda function has been given permissions to publish to AWS IoT Core (`iot:Publish`). Make a POST call to the API Endpoint with `topic` and `message` in the body.","This pattern deploys an API Gateway resource and one Lambda function.","TypeScript","200",{},{"icon1":36,"icon2":41,"icon3":44,"line1":48,"line2":52},{"x":37,"y":38,"service":39,"label":40},20,50,"apigw","API Gateway REST API",{"x":38,"y":38,"service":42,"label":43},"lambda","AWS Lambda",{"x":45,"y":38,"service":46,"label":47},80,"iot","IoT Core",{"from":49,"to":50,"label":51},"icon1","icon2","",{"from":50,"to":53,"label":51},"icon3",{"bullets":55},[56,59],{"text":57,"link":58},"Boto3 IoT Publish","https:\u002F\u002Fboto3.amazonaws.com\u002Fv1\u002Fdocumentation\u002Fapi\u002Flatest\u002Freference\u002Fservices\u002Fiot-data.html#IoTDataPlane.Client.publish",{"text":60,"link":61},"AWS IoT HTTPS","https:\u002F\u002Fdocs.aws.amazon.com\u002Fiot\u002Flatest\u002Fdeveloperguide\u002Fhttp.html","patterns\u002Fapigw-lambda-iot-cdk",{"text":64},[65],"See the GitHub repo for detailed testing instructions.","QjsTU9zKnPrsiXet-gDxDTpy7cpvGn2pNz7ZNqjhNqQ",1778846882284]