[{"data":1,"prerenderedAt":58},["ShallowReactive",2],{"pattern-sfn-dynamodb":3},{"id":4,"title":5,"architectureURL":6,"cleanup":7,"contributors":12,"deploy":14,"description":17,"extension":18,"framework":19,"gitHub":20,"highlight":6,"introBox":28,"language":32,"level":33,"meta":34,"patternArch":35,"resources":48,"s3URL":6,"services":51,"stem":52,"testing":53,"videoId":25,"__hash__":57},"patterns\u002Fpatterns\u002Fsfn-dynamodb.json","AWS Step Functions to Amazon DynamoDB",null,{"headline":8,"text":9,"test":11},"Cleanup",[10],"Delete the stack \u003Ccode> aws cloudformation delete-stack --stack-name STACK_NAME\u003C\u002Fcode>",[],[13],"content\u002Fcontributors\u002Frevanth-anireddy.json",{"text":15},[16],"sam deploy --guided","Create an AWS Step Functionsworkflow to integrate with Amazon DynamoDB ","json","AWS SAM",{"template":21,"payloads":27},{"repoURL":22,"templateURL":23,"projectFolder":24,"readmeURL":25,"templateFile":26},"https:\u002F\u002Fgithub.com\u002Faws-samples\u002Fserverless-patterns\u002Ftree\u002Fmain\u002Fsfn-dynamodb","serverless-patterns\u002Fsfn-dynamodb","sfn-dynamodb","","template.yaml",[],{"headline":29,"text":30,"text2":25},"How it works",[31],"The SAM template 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 SAM template contains the minimum IAM resources required to run the application.","YAML","100",{},{"icon1":36,"icon2":41,"line1":45},{"x":37,"y":38,"service":39,"label":40},20,50,"sfn","Step Functions",{"x":42,"y":38,"service":43,"label":44},80,"dynamodb","Amazon DynamoDB",{"from":46,"to":47,"label":25},"icon1","icon2",{"headline":49,"bullets":50},"Additional resources",[],{"from":39,"to":43},"patterns\u002Fsfn-dynamodb",{"headline":54,"text":55},"Testing",[56],"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>","y0cw3khCeFi14XrBkPeMdsy5EuTCrGxsZRqZ_h1zPF0",1782124510213]