Answers: <p>Finally, I found the answer a few years back! and here you go :D</p>
  <p>In AWS, we have to use Cloudfront service to archive this.</p>
  <p>Cloudfront has origin and behaviors settings, where you can define them.</p>
  <p>For example:</p>
  <p>If your domain name is: example.com</p>
  <p>You can define the path: <code>example.com/crm</code> and you can map this path with <code>AWS Lambda function, EB or any related service</code>.</p>
  <p>Likewise you will be able to create much as you want.</p>
  <ul>
  <li><code>example.com/crm</code> to lambda</li>
  <li><code>example.com/blog</code> to EB</li>
  <li><code>example.com/app</code> to S3</li>
  </ul>
  <p>Hope this helps someone.</p>
  
Answers: CC BY-SA 4.0
Answers: 2022-11-16T05:45:12.227Z
Answers: 2022-11-16T05:45:12.227Z
Answers: Kalana Perera
Answers: <p>You may wish to try scripting the actions you want. Then use <a href="https://git-scm.com/book/gr/v2/Customizing-Git-Git-Hooks" rel="nofollow noreferrer">git hooks</a> to trigger your scripts to release the latest code to your environment. Alternatively, you could <a href="https://aws.amazon.com/blogs/devops/set-up-a-build-pipeline-with-jenkins-and-amazon-ecs/" rel="nofollow noreferrer">use something</a> like Jenkins to configure a <a href="https://devops.stackexchange.com/questions/573/what-is-push-on-green">"push on green"</a> system if you are working with compiled code. Lastly, (though I haven't used them) Amazon claims that their <a href="https://aws.amazon.com/codepipeline/" rel="nofollow noreferrer">CodePipeline product</a> can do this (and perhaps <a href="https://aws.amazon.com/codebuild/" rel="nofollow noreferrer">CodeBuild</a> 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.</p>
  
Answers: CC BY-SA 4.0
Answers: 2019-07-14T04:27:23.173Z
Answers: This is not the answer I want, But what you told is true. :)
Answers: Kalana Perera
Answers: CC BY-SA 3.0
Answers: 2017-11-16T16:53:59.013Z
Answers: 2017-11-16T16:53:59.013Z
Answers: James Shewey
Body: <p>I have multiple projects on Github and I need to release each project on same domain different paths when developer commit code changes.</p>
  
  <p>Example:</p>
  
  <p>I have Github repositories like below</p>
  
  <ul>
  <li>CRM </li>
  <li>CMS</li>
  <li>Main-Website</li>
  </ul>
  
  <p>currently, our website is like this</p>
  
  <ul>
  <li>example.com/CRM</li>
  <li>example.com/CMS</li>
  <li>example.com --> is the Main-Website repository.</li>
  </ul>
  
  <p>Please someone tell me how to do this in AWS using there services. Currently im doing this manually login to server and git pull</p>
  
  <p>Thanks.</p>
  
Comments: CC BY-SA 3.0
Comments: 2017-11-16T12:39:46.647Z
Comments: not sure this answer is what you are looking for - would e.g. Bamboo or Jenkins depoyoment routines suite your needs?
Comments: Ta Mu
Tags: <amazon-web-services><github>
Title: How do I release multiple projects to same domain using AWS when developer commit the latest code change
UserDisplayName: Kalana Perera
ThreadText: # How do I release multiple projects to same domain using AWS when developer commit the latest code change
  
  (Asked by: username_0 on 2017-11-16)
  
  I have multiple projects on Github and I need to release each project on same domain different paths when developer commit code changes.
  
  Example:
  
  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
  
  Thanks.
  
  **Tags:** amazon-web-services, github
  
  > **Comments:**
  > **username_1**: not sure this answer is what you are looking for - would e.g. Bamboo or Jenkins depoyoment routines suite your needs?  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_0 on 2022-11-16. Score: 0 | Accepted answer
  
  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.
  
  
  ---
  
  ### Answer by username_2 on 2017-11-16. Score: 2
  
  You may wish to try scripting the actions you want. Then use [git hooks](https://git-scm.com/book/gr/v2/Customizing-Git-Git-Hooks) to trigger your scripts to release the latest code to your environment. Alternatively, you could [use something](https://aws.amazon.com/blogs/devops/set-up-a-build-pipeline-with-jenkins-and-amazon-ecs/) like Jenkins to configure a ["push on green"](https://devops.stackexchange.com/questions/573/what-is-push-on-green) system if you are working with compiled code. Lastly, (though I haven't used them) Amazon claims that their [CodePipeline product](https://aws.amazon.com/codepipeline/) can do this (and perhaps [CodeBuild](https://aws.amazon.com/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.
  
  > **Comments:**
  > **username_0**: This is not the answer I want, But what you told is true. :)  
  
  ---
  
  