Skip to content

Feature request: pass Conditions through to templates #115

Open
@rererecursive

Description

@rererecursive

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions