[{"data":1,"prerenderedAt":68},["ShallowReactive",2],{"pattern-apigw-lambda-dynamodb-cdk-go":3},{"id":4,"title":5,"architectureURL":6,"cleanup":7,"contributors":13,"deploy":15,"description":18,"extension":19,"framework":20,"gitHub":21,"highlight":6,"introBox":27,"language":31,"level":32,"meta":33,"patternArch":34,"resources":53,"s3URL":6,"services":6,"stem":62,"testing":63,"videoId":6,"__hash__":67},"patterns\u002Fpatterns\u002Fapigw-lambda-dynamodb-cdk-go.json","Amazon API Gateway REST API to AWS Lambda to Amazon DynamoDB",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\u002Fabhishek-gupta.json",{"text":16},[17],"cdk deploy","Create a Lambda function that receives a request from API Gateway and puts an item into DynamoDB.","json","AWS CDK",{"template":22},{"projectFolder":23,"repoURL":24,"templateURL":25,"templateFile":26},"apigw-lambda-dynamodb-cdk-go","https:\u002F\u002Fgithub.com\u002Faws-samples\u002Fserverless-patterns\u002Ftree\u002Fmain\u002Fapigw-lambda-dynamodb-cdk-go","serverless-patterns\u002Fapigw-lambda-dynamodb-cdk","cdk\u002Fmain.go",{"headline":28,"text":29},"How it works",[30],"This pattern explains how to deploy a CDK application with Amazon API Gateway, AWS Lambda, and Amazon DynamoDB. When an HTTP POST request is made to the Amazon API Gateway endpoint, the AWS Lambda function is invoked and inserts an item into the Amazon DynamoDB table.","Go","200",{},{"icon1":35,"icon2":40,"icon3":43,"line1":47,"line2":51},{"x":36,"y":37,"service":38,"label":39},20,50,"apigw","API Gateway",{"x":37,"y":37,"service":41,"label":42},"lambda","AWS Lambda",{"x":44,"y":37,"service":45,"label":46},80,"dynamodb","Amazon DynamoDB",{"from":48,"to":49,"label":50},"icon1","icon2","",{"from":49,"to":52,"label":50},"icon3",{"headline":54,"bullets":55},"Additional resources",[56,59],{"text":57,"link":58},"AWS Docs: Writing Data to a Table","https:\u002F\u002Fdocs.aws.amazon.com\u002Famazondynamodb\u002Flatest\u002Fdeveloperguide\u002FSQLtoNoSQL.WriteData.html",{"text":60,"link":61},"Lambda CDK docs","https:\u002F\u002Fdocs.aws.amazon.com\u002Fcdk\u002Fapi\u002Fv2\u002F\u002Fdocs\u002Faws-cdk-lib.aws_lambda-readme.html","patterns\u002Fapigw-lambda-dynamodb-cdk-go",{"headline":64,"text":65},"Testing",[66],"See the GitHub repo for detailed testing instructions.","RZvgUdl9i_EQnwF14ouibtrQypauPPbm_RWqOdw8nu8",1778846882186]