runway.cfngin.lookups.handlers.rxref module¶
Handler for fetching outputs from a stack in the current namespace.
-
class
runway.cfngin.lookups.handlers.rxref.
RxrefLookup
[source]¶ Bases:
runway.lookups.handlers.base.LookupHandler
Rxref lookup.
-
classmethod
handle
(value, context=None, provider=None, **kwargs)[source]¶ Fetch an output from the designated stack in the current namespace.
The
output
lookup supports fetching outputs from stacks created within a single config file. Sometimes it’s useful to fetch outputs from stacks created outside of the current config file but using the same namespace.rxref
supports this by using therunway.cfngin.context.Context
to expand the fqn of the stack.- Parameters
value (str) – Parameter(s) given to this lookup.
<stack_name>::<output_name>
context (
runway.cfngin.context.Context
) – Context instance.provider (
runway.cfngin.providers.base.BaseProvider
) – Provider instance.
- Returns
Output from the specified stack.
- Return type
Example
conf_value: ${rxref relative-stack-name::SomeOutputName}
-
classmethod