menuCohesive docs

Creating stacks

A stack should be treated as a collection of micro-services which eases the management of complex systems.

With Stacks, you can easily launch and manage staging environments with multiple inter-dependent services that replicate complex production-like architectures.

Generally, to be able to test a feature end-to-end, it is required to deploy multiple micro-services together. Also, these micro-services need to be interconnected. Stack helps to solve for these use cases in a developer friendly manner by abstracting the complexity from the process. This enables organizations to save development time and ship products faster.

Let's see how to create a stack

Add microservices

  1. Go to the Stacks panel and click on Add stack button
  2. Add name and description for your stack
  3. Choose the list of projects to be added to stack
  4. Project visibility can be public or private. Private projects can not be accessed from outside network while public projects can be.
  5. Click next

Setup services

  1. Configure any external service required by the chosen projects.
  2. Two options will be provided for each service: Create new to create a new service and Pick from existing to use an existing service.
  3. Click next

Setup applications

  1. Add all environment variables used by each of the applications in your projects. Key is simply the name of the variable defined in your application. Value of the variable can either be a static (hardcoded string or a derived variable. Derived variables can be used in cases when you do not know the value of the field at the time of creating the environment.
  2. Click next

Specify base app

Select the base application you would want the stack to point to. For example: In case you are creating a stack to replicate your production environment, this will be the url of your landing page application.