This solution deploys an HTTPS endpoint you can use to configure a webhook to link your Git to Amazon Web Services (AWS). With a webhook in place, each time a commit is pushed, the repository is automatically retrieved, zipped, and uploaded to an Amazon Simple Storage System (Amazon S3) bucket. You can then configure AWS CodePipeline, AWS CodeBuild, and AWS CodeDeploy to use the S3 bucket as a source.
https://aws.amazon.com/solutions/implementations/git-to-s3-using-webhooks/