Member-only story
DevSecOps in Cloud : Chapter — 2: Application Project Structure
3 min readMar 10, 2020
Each application stack may have several repositories. These may be for applications, infrastructure code, database scripts and libraries or more. In order to keep them all organised you would want to structure the repository so that the applications and libraries are clearly separated. The following list below just explains the repositories with various components.
- Applications — Just holds application code
- Libraries — Just holds common lib code
- Application/Modules — Holds applications under modules within the same repo. So one repo with many apps code.
- Application/Libraries — Holds libraries under the same repo.
- Infrastructure as Code — Holds infrastructure stuff such as CloudFormation or Terraform scripts.
Keeping common code in separate modules as a minimum or completely different repositories is highly recommended. Often libs and apps live together in common repositories. This is almost always asking for trouble.