[{"data":1,"prerenderedAt":66},["ShallowReactive",2],{"pattern-sfn-log-export":3},{"id":4,"title":5,"architectureURL":6,"cleanup":7,"contributors":12,"deploy":14,"description":17,"extension":18,"framework":19,"gitHub":20,"highlight":6,"introBox":29,"language":33,"level":34,"meta":35,"patternArch":36,"resources":50,"s3URL":6,"services":59,"stem":60,"testing":61,"videoId":28,"__hash__":65},"patterns\u002Fpatterns\u002Fsfn-log-export.json","Amazon EventBridge to AWS Step Functions to Amazon S3",null,{"headline":8,"text":9},"Cleanup",[10,11],"1. Delete the stack: \u003Ccode>sam delete --stack-name STACK_NAME\u003C\u002Fcode>.","2. Confirm the stack has been deleted: \u003Ccode>aws cloudformation list-stacks --query \"StackSummaries[?contains(StackName,'STACK_NAME')].StackStatus\"\u003C\u002Fcode>",[13],"content\u002Fcontributors\u002Fdmytro-protsiv.json",{"text":15},[16],"sam deploy --guided","Create an AWS Step Functions workflow to export CloudWatch Logs to S3.","json","AWS SAM",{"template":21,"payloads":26},{"projectFolder":22,"repoURL":23,"templateURL":24,"templateFile":25},"sfn-log-export","https:\u002F\u002Fgithub.com\u002Faws-samples\u002Fserverless-patterns\u002Ftree\u002Fmain\u002Fsfn-log-export","serverless-patterns\u002Fsfn-log-export","template.yaml",[27],{"headline":28,"payloadURL":28},"",{"headline":30,"text":31},"How it works",[32],"This template creates an AWS Step Functions workflow used to orchestrate the export of CloudWatch LogGroups with matching tags to S3 on a monthly schedule for archival purposes. The workflow is triggered using EventBridge rules. It also creates IAM execution roles with permissions to invoke Lambda functions, write to an S3 bucket, as well as the S3 bucket into which logs will be exported.","Python","300",{},{"icon1":37,"icon2":42,"line1":46},{"x":38,"y":39,"service":40,"label":41},20,50,"eventbridge","Amazon EventBridge",{"x":43,"y":39,"service":44,"label":45},80,"sfn","Step Functions",{"from":47,"to":48,"label":49},"icon1","icon2","Schedule",{"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":40,"to":44},"patterns\u002Fsfn-log-export",{"headline":62,"text":63},"Testing",[64],"See the GitHub repo for detailed testing instructions.","6EiyaspufTH4TCw-DxmiN--KCOQ4ZIyGUUZGmfKwCQE",1778846887935]