[{"data":1,"prerenderedAt":68},["ShallowReactive",2],{"pattern-codecommit-s3":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":34,"level":35,"meta":36,"patternArch":37,"resources":50,"s3URL":58,"services":59,"stem":60,"testing":61,"videoId":28,"__hash__":67},"patterns\u002Fpatterns\u002Fcodecommit-s3.json","CodeCommit 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\u002Fmarcos-hauer.json",{"text":15},[16],"sam deploy --guided  --capabilities CAPABILITY_NAMED_IAM","Backup CodeCommit repos to S3 buckets.","json","AWS SAM",{"template":21,"payloads":26},{"projectFolder":22,"repoURL":23,"templateURL":24,"templateFile":25},"codecommit-s3","https:\u002F\u002Fgithub.com\u002Faws-samples\u002Fserverless-patterns\u002Ftree\u002Fmain\u002Fcodecommit-s3","serverless-patterns\u002Fcodecommit-s3","template.yaml",[27],{"headline":28,"payloadURL":28},"",{"headline":30,"text":31},"How it works",[32,33],"This pattern implements the solution outlined at https:\u002F\u002Fdocs.aws.amazon.com\u002Fprescriptive-guidance\u002Flatest\u002Fpatterns\u002Fautomate-event-driven-backups-from-codecommit-to-amazon-s3-using-codebuild-and-cloudwatch-events.html.","It uses a Lambda function and a CloudFormation Custom Resource to create the CodeBuild buildspec.yml template at deployment time, and the EventBridge and CodeBuild project described on the AWS Prescriptive Guidance.","Python","100",{},{"icon1":38,"icon2":43,"line1":47},{"x":39,"y":40,"service":41,"label":42},20,50,"codecommit","AWS CodeCommit",{"x":44,"y":40,"service":45,"label":46},80,"s3","Amazon S3",{"from":48,"to":49,"label":28},"icon1","icon2",{"headline":51,"bullets":52},"Additional resources",[53,55],{"text":42,"link":54},"https:\u002F\u002Faws.amazon.com\u002Fcodecommit\u002F",{"text":56,"link":57},"S3-to-Lambda application patterns","https:\u002F\u002Fgithub.com\u002Faws-samples\u002Fs3-to-lambda-patterns","https:\u002F\u002Fda-public-assets.s3.amazonaws.com\u002Fpatterns\u002Fcodecommit-s3\u002Fcloudformation.yml",{"from":41,"to":45},"patterns\u002Fcodecommit-s3",{"headline":62,"text":63},"Testing",[64,65,66],"1. You can test the solution by accessing the Lambda console, finding the Lambda function, and clicking Test in the Code Source section.","2. You can also invoke the function from the CLI using \u003Ccode>aws lambda invoke --function-name ENTER_FUNCTION_NAME output.txt\u003C\u002Fcode>.","3. Go to the S3 console, locate the deployed S3 bucket, and view the object has been written.","LYBHj4HEfdAkS4FRKFicumF3nD3Pg5utobOADklBDsg",1778927706978]