8000 Add support for Rules by rkz · Pull Request #1446 · cloudtools/troposphere · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Add support for Rules #1446

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

Merged
merged 5 commits into from
Jun 30, 2019
Merged

Add support for Rules #1446

merged 5 commits into from
Jun 30, 2019

Conversation

rkz
Copy link
Contributor
@rkz rkz commented Jun 28, 2019

Rules are a feature of AWS Service Catalogue 1 but is undocumented for pure CloudFormation. However, it does work in vanilla CloudFormation as well 2.

This adds minimal support for Rules in templates with a Template.add_rule() function.

A future improvement could bring a Rule class to validate the contents of the rule itself.

Originally contributed by @nielslaukens at #1412

nielslaukens and others added 5 commits June 3, 2019 11:51
@rkz rkz marked this pull request as ready for review June 28, 2019 21:42
@rkz rkz mentioned this pull request Jun 28, 2019
@markpeek
Copy link
Member

@nielslaukens since this was based on your original PR, can you review and give your +1?

@nielslaukens
Copy link
Contributor

I would add a check for duplicate names, like it's done for .add_resource(). Since we're currently don't have a BaseAWSObject for a Rule, I've just copied the duplicate 9E53 checking part.

I would also add a check on the maximum number of rules. I've searched for a documented maximum number of rules, but couldn't find one in the documentation. If I find the time, I'll try to figure out the current actual limit and configure that. Or put in a TODO for later...

I've pulled in your changes, and added both of the above in my branch (#1412)

@markpeek markpeek merged commit 8ab1eea into cloudtools:master Jun 30, 2019
@markpeek
Copy link
Member

Merged via the updated #1412.

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.

3 participants
0