Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

AWS CodeDeploy: Using multiple git repositories, or submodule inside a git repo?

I have a use case where I would want to keep two git repositories, or two applications (frontend, backend) developed by separate teams, on the same Auto-Scaling EC2 instance group.

I want to use CodeDeploy to control the deployment and revisions of the latest code.

I tried creating git submodules, but the GitHub API that CodeDeploy uses does not fetch the submodules in the tarball, so it is of limited use unless I keep a SSH key to fetch from the servers (I don't want to do that)

Is there some way I can keep the code in different repositories and utilize CodeDeploy?

like image 314
gargsms Avatar asked Feb 20 '26 20:02

gargsms


1 Answers

Are you declaring the backend as a dependency service for your frontend? If yes, is it possible to create two separate applications on CodeDeploy for now? Every time backend service is deployed first for application1 and deployment1 on CodeDeploy, and frontend service is deployed later for application2 and deployment2. Will this be a possible workaround?

Supporting for Github submodules definitely is a valid feature request.

like image 161
binbinlu Avatar answered Feb 23 '26 17:02

binbinlu



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!