Using the write_output
utility function, key-values can be stored as a property in any output resource. Every step that has the resource as an input can access the key-value information in its scripts as an environment variable.
The environment variable for the value is of the form res_<resource name>_<key name>
.
Resource-based state information is persistent across pipelines, so it can be used as a mechanism for passing information from one pipeline to the next.