Open
Description
I have a use case where I need to configure the components for CloudFront and ACM based on their environment type. This can be achieved for each component individually by vendoring tem and then placing a Condition
statement inside their templates. However, this is not a dynamic approach as it requires hard-coding the condition.
What would be nice is to have a dynamic Condition that is passed down to the desired templates. This can then be referenced in a component's config.
An example of this may look like:
is_prod = Condition('IsProd', FnEquals(Ref('EnvironmentType'), 'production'))
Component name: 'acm', template: 'acm' do
parameter name: 'DnsDomain', value: 'hello.com'
condition name: 'IsProd', value: is_prod
end