This example demonstrates how to implement a custom resolver that depends on other stacks.
When the example is deployed, the custom resolver is used to read the creation time from the other stack and use it as stack input parameter value.
See the complete example at GitHub.
The example consists of the following files:
There are two stacks of which the stacks/stack-b.yml is more interesting as it uses the custom resolver stack-creation-time. The stack configuration looks like this:
The custom resolver takes the stack path of a stack in otherStack property and uses it to query the stack's creation time. The given stack path is also assigned to the resolver's dependencies property, making the stack a dependency of the stack where the resolver is used.
To deploy the example stack, run command:
To remove the created stack, run command:
Find more information from the documentation: