Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: pass Conditions through to templates #115

Open
rererecursive opened this issue Aug 7, 2019 · 0 comments
Open

Feature request: pass Conditions through to templates #115

rererecursive opened this issue Aug 7, 2019 · 0 comments
Labels
enhancement New feature or request

Comments

@rererecursive
Copy link

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
@Guslington Guslington added the enhancement New feature or request label Oct 24, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants