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

Support auto param generation logic, validation #10

Merged
merged 1 commit into from
Sep 20, 2018

Conversation

brettswift
Copy link
Owner

Cumulus supports parameter auto-generation. When you add a resource
that expects a parameter, cumulus will by default add these in for you.

In the case of Stacker, or other apps that might wrap cumulus, there is
a use case of parameters being created on the template for you. To
support this you can turn off "auto parameter generation" in the chain
context.

The behaviour here will not add parameters, but will validate those to
give the consumer a more intelligent message than "resource 'ParamOne'
not found".

Example code to be used in your chain Step can be found in the test.

@brettswift
Copy link
Owner Author

@john-shaskin @jsauter
Please have a look

Cumulus supports parameter auto-generation.  When you add a resource
that expects a parameter, cumulus will by default add these in for you.

In the case of Stacker, or other apps that might wrap cumulus, there is
a use case of parameters being created on the template for you. To
support this you can turn off "auto parameter generation" in the chain
context.

The behaviour here will not add parameters, but will validate those to
give the consumer a more intelligent message than "resource 'ParamOne'
not found".

Example code to be used in your chain Step can be found in the test.
Copy link
Owner Author

@brettswift brettswift left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

completing review

cumulus/util/tropo.py Show resolved Hide resolved
cumulus/util/tropo.py Show resolved Hide resolved
cumulus/util/tropo.py Show resolved Hide resolved
@brettswift brettswift merged commit 966d52f into master Sep 20, 2018
@brettswift brettswift deleted the feature/required_params branch September 27, 2018 20:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants