serverless / compose

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

Recognise Ouputs #161

Open jcampbell05 opened 1 year ago

jcampbell05 commented 1 year ago

Is there an existing issue for this?

Use case description

Currently the only outputs supported are those exposed by CloudResources but some outputs can only be expressed or rather are easier to express by using Serverless outputs.

However compose doesn't support these.

What I would love to be able to express is the following:

services:
  api:
    path: main-serverless-api
  ai:
    path: serverless-ai
   dep:
      enhancementResultQueue: ${output:api.enhancementResultQueue}

But it currently just isn't possible instead I have to do it by making ai explicitly depend on ai and reference the option from within the ai yml file.

Proposed solution (optional)

No response