serverless / compose

Orchestrate Serverless Framework in monorepos
https://serverless.com/framework/docs/guides/compose
MIT License
110 stars 15 forks source link

Support distinct environments for different services #180

Open spinlud opened 1 year ago

spinlud commented 1 year ago

Is there an existing issue for this?

Use case description

Something like docker-compose:

serverless-compose.yml

services:
  service-a:
    path: service-a
    environment:
      - FOO='bar'
      - ABC='abc'

  service-b:
    path: service-b
    environment:
      - FOO='whoops'
      - XYZ='xyz'

Would be useful to differentiate environments, especially when using variables with the same name but a different value.

Proposed solution (optional)

No response