'AWS Elastic Beanstalk: Is it possible to have multiple Elastic Beanstalk apps in single git repo?

I have a worker app and an api service which are both for the same project and I want them using same tooling. But I am not sure if you can deploy to different EBs from same repo using single config.



Solution 1:[1]

For anyone stumbling upon this like me there's now documentation from AWS on how to setup an elastic beanstalk project for this kind of thing:

https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/ebcli-compose.html

Basically you add an env.yaml for each subfolder

~/project-name
|-- component-a
|   `-- env.yaml
`-- component-b
    `-- env.yaml

You can then instantiate each component like so:

~/workspace/project-name$ eb init --modules component-a component-b

Additional commands seem to be similar to other elastic beanstalk commands with the additional --modules flag. See documentation.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Blakedallen