Skip to main content

resource

Resource is an output type that runs a resource output by its name.

# Config fields, showing default values
output:
resource: ""

This output allows you to reference the same configured output resource in multiple places, and can also tidy up large nested configs. For example, the config:

output:
broker:
pattern: fan_out
outputs:
- kafka:
addresses: [ TODO ]
topic: foo
- gcp_pubsub:
project: bar
topic: baz

Could also be expressed as:

output:
broker:
pattern: fan_out
outputs:
- resource: foo
- resource: bar
output_resources:
- label: foo
kafka:
addresses: [ TODO ]
topic: foo
- label: bar
gcp_pubsub:
project: bar
topic: baz

You can find out more about resources in this document.