cfhighlander
cfhighlander copied to clipboard
Support for stack dependson when inlining a component
Right now when we have component like
CfhighlanderTemplate do
Parameters do
ComponentParam 'RegionCode', 'eu', allowedValues: ['eu', 'us', 'ap']
end
Component template: 'a', name: 'a1', render: Inline do
parameter name: 'RegionCode', value: Ref('RegionCode')
end
Component template: 'a', name: 'a2', dependson: ['a1'] do
parameter name: 'RegionCode', value: Ref('RegionCode')
end
end
We end up with an invalid DependsOn
referencing the name of the inlined stack which has been removed.
Ideally it would be good to be able to reference a specific resource within the inlined stack maybe we could support for following syntax for dependson
Component template: 'a', name: 'a2', dependson: ['a1.SnsTopic'] do
parameter name: 'RegionCode', value: Ref('RegionCode')
end
and the resulting DependsOn
would just contain the reference to the inlined resource
@Guslington @toshke thoughts????