Output resources connects even if unused #2523
Labels
bughancement
It's kind of a bug, but mostly an enhancement.
configuration
Any tasks or issues relating to Benthos configuration
needs investigation
It looks as though have all the information needed but investigation is required
Hi!
while building our streams we tried to avoid code duplication by replacing our outputs with a resource.
While trying different configurations, we noticed that if we declare multiple output resources, they immediately connect upon startup even if these resources aren't referenced in any stream.
Here's our resource.yaml file:
Here's the stream file:
And this is the startup script:
In our solution, we would like to define multiple output resources in a single yaml file. Since we plan to have plenty of different outputs in the same file, we want to be sure that only the referenced resources are actually instantiated.
Is there any way to avoid the "second_output" resource to be used when not referenced? (e.g. lazy loading?)
The text was updated successfully, but these errors were encountered: