I'm using Amazon's Elastic Beanstalk to deploy my app via Git, and I've got submodules within my Git. Of course, when I look at the directories where the data for the submodules should be, nothing is there because the submodules have not been initialized.
Apparently Elastic Beanstalk doesn't support submodules. Is this correct? If so, how can I convince Git to let me have the features of a submodule but still upload all the code of the submodule when I push the main repo?
Elastic Beanstalk isn't great if you need a lot of environment variables. The simple reason is that Elastic Beanstalk has a hard limit of 4KB to store all key-value pairs. The environment had accumulated 74 environment variables — a few of them had exceedingly verbose names.
Just like the CodeDeploy example, all it takes to deploy to Elastic Beanstalk using Codeship are a few parameters: the Elastic Beanstalk application name. the Elastic Beanstalk environment name. the S3 bucket to upload the artifact to.
You can also deploy a previously uploaded version of your application to any of its environments from the application versions page. Open the Elastic Beanstalk console , and in the Regions list, select your AWS Region. In the navigation pane, choose Applications, and then choose your application's name from the list.
Elastic Beanstalk does support sub-modules if you just make sure that Git is installed on the AMI you use by Customizing and Configuring AWS Elastic Beanstalk Environments. You can do that by providing a config in your git repo:
Create a configuration file with the extension .config
(e.g., myapp.config
) and place it in an .ebextensions
top-level directory of your git repo
In that file, specify the dependencies:
packages: <name of package manager>: <package name>: <version>
for example:
packages: yum: git: []
make sure you match the name of package manager
to the AMI you're using, so for example yum
for Amazon Linux, apt
for Ubuntu.
you'll probably have to adapt your build script to initialize the sub-modules as EB won't do that for you
commit, push and deploy and go
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With