[{"data":1,"prerenderedAt":56},["ShallowReactive",2],{"workflow-github-repo-views-counter":3},{"id":4,"title":5,"cleanup":6,"contributors":10,"deploy":12,"description":15,"diagram":16,"extension":17,"framework":18,"gitHub":19,"introBox":28,"level":35,"meta":36,"resources":37,"s3URL":40,"services":41,"simplicity":47,"stem":48,"testing":49,"type":53,"usecase":54,"videoId":27,"__hash__":55},"workflows\u002Fworkflows\u002Fgithub-repo-views-counter.json","GitHub repo views counter",{"headline":7,"text":8},"Cleanup",[9],"1. Delete the stack: \u003Ccode>sam delete\u003C\u002Fcode>.",[11],"content\u002Fcontributors\u002Fbenjamin-smith.json",{"text":13},[14],"sam deploy --guided","maintain a historic count of GitHub repository views","\u002Fassets\u002Fimages\u002Fworkflows\u002Fgithub-repo-views-counter.png","json","AWS SAM",{"template":20,"payloads":25},{"repoURL":21,"templateDir":22,"templateFile":23,"ASL":24},"https:\u002F\u002Fgithub.com\u002Faws-samples\u002Fstep-functions-workflows-collection\u002Ftree\u002Fmain\u002Fgithub-repo-views-counter\u002F","github-repo-views-counter","template.yaml","statemachine\u002Fstatemachine.asl.json",[26],{"headline":27,"payloadURL":27},"",{"headline":5,"text":29},[30,31,32,33,34],"maintain a daily count of repository views. The workflow uses the Map state to concurrently process an array of repository URLS.","Create a GitHub Personal Access Token and add include when propted by the template deployment process with `sam deploy -g`.","Add a comma seperated list of repositories to the initial 'get reps' state.","The workflow is triggered at 14:24 every day by a rule on Amazon EventBridge Scheduler.","Results are saved to a DynamoDB table","300",{},{"headline":38,"bullets":39},"Additional resources",[],null,[42,43,44,45,46],"lambda","sfn","eventbridge","dynamodb","ssm","3 - Application","workflows\u002Fgithub-repo-views-counter",{"headline":50,"text":51},"Testing",[52],"See the GitHub repo for detailed testing instructions.","Standard","Scheduled Job","ew0O4pdxyM2gyqxn_NayFk8OzqsnvmbtMd8gUkNWgvk",1782124511587]