I have multiple projects on Github and I need to release each project on same domain different paths when developer commit code changes.


I have Github repositories like below

  • CRM
  • CMS
  • Main-Website

currently, our website is like this

  • example.com/CRM
  • example.com/CMS
  • example.com --> is the Main-Website repository.

Please someone tell me how to do this in AWS using there services. Currently im doing this manually login to server and git pull


  • not sure this answer is what you are looking for - would e.g. Bamboo or Jenkins depoyoment routines suite your needs?
    – Ta Mu
    Nov 16, 2017 at 12:39

2 Answers 2


You may wish to try scripting the actions you want. Then use git hooks to trigger your scripts to release the latest code to your environment. Alternatively, you could use something like Jenkins to configure a "push on green" system if you are working with compiled code. Lastly, (though I haven't used them) Amazon claims that their CodePipeline product can do this (and perhaps CodeBuild can as well), though my personal preference is to keep things as generic as possible and avoid drinking Amazon's Kool-Aid in order to keep things portable. Like a drug dealer, the first hit may be free with Amazon, and things are great until they have you hooked and decide to jack up the price. Utilizing my own open source system ensures that I can easily take my ball and go to another cloud or home altogether (and host it myself) in the event that I need to make a rapid exit from Amazon's cloud and avoids lock-in.

  • This is not the answer I want, But what you told is true. :) Jul 14, 2019 at 4:27

Finally, I found the answer a few years back! and here you go :D

In AWS, we have to use Cloudfront service to archive this.

Cloudfront has origin and behaviors settings, where you can define them.

For example:

If your domain name is: example.com

You can define the path: example.com/crm and you can map this path with AWS Lambda function, EB or any related service.

Likewise you will be able to create much as you want.

  • example.com/crm to lambda
  • example.com/blog to EB
  • example.com/app to S3

Hope this helps someone.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.