[{"data":1,"prerenderedAt":66},["ShallowReactive",2],{"pattern-sfn-dynamodb-cdk":3},{"id":4,"title":5,"architectureURL":6,"cleanup":7,"contributors":14,"deploy":16,"description":19,"extension":20,"framework":21,"gitHub":22,"highlight":6,"introBox":29,"language":34,"level":35,"meta":36,"patternArch":37,"resources":50,"s3URL":6,"services":59,"stem":60,"testing":61,"videoId":33,"__hash__":65},"patterns\u002Fpatterns\u002Fsfn-dynamodb-cdk.json","AWS Step Functions to Amazon DynamoDB",null,{"headline":8,"text":9,"test":13},"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.",[],[15],"content\u002Fcontributors\u002Frevanth-anireddy.json",{"text":17},[18],"cdk deploy","Create an AWS Step Functionsworkflow to integrate with Amazon DynamoDB","json","AWS CDK",{"template":23,"payloads":28},{"repoURL":24,"templateURL":25,"projectFolder":26,"templateFile":27},"https:\u002F\u002Fgithub.com\u002Faws-samples\u002Fserverless-patterns\u002Ftree\u002Fmain\u002Fsfn-dynamodb-cdk","serverless-patterns\u002Fsfn-dynamodb-cdk","sfn-dynamodb-cdk","sfn_dynamodb_cdk\u002Fsfn_dynamodb_cdk_stack.py",[],{"headline":30,"text":31,"text2":33},"How it works",[32],"The CDK application deploys a Step Functions workflow, that takes in a payload and puts the item in DynamoBb. Additionally, this workflow also shows how to read an item directly from the DynamoDB table. The CDK application contains the minimum IAM resources required to run the application. ","","Python","100",{},{"icon1":38,"icon2":43,"line1":47},{"x":39,"y":40,"service":41,"label":42},20,50,"sfn","Step Functions",{"x":44,"y":40,"service":45,"label":46},80,"dynamodb","Amazon DynamoDB",{"from":48,"to":49,"label":33},"icon1","icon2",{"headline":51,"bullets":52},"Additional resources",[53,56],{"text":54,"link":55},"Synchronous Express Workflows for AWS Step Functions","https:\u002F\u002Faws.amazon.com\u002Fblogs\u002Fcompute\u002Fnew-synchronous-express-workflows-for-aws-step-functions\u002F",{"text":57,"link":58},"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\u002Fsfn-dynamodb-cdk",{"headline":62,"text":63},"Testing",[64],"Run the following AWS CLI command to send a 'start-execution` command to start the Step Functions workflow. Note, you must edit the {StateMachineExpressSynctoLambda} placeholder with the ARN of the deployed Step Functions workflow: \u003Ccode>aws stepfunctions start-execution  --name \"test\" --state-machine-arn \"{StateMachinetoDDBArn}\" --input \"{\\\"id\\\":  \\\"12345\\\" }\"\u003C\u002Fcode>","5UzKnHIva5twh5LvjWXZpDD0SmblWG1mT54_GOciyFs",1778927711195]