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 recursive condition #114

Merged
merged 12 commits into from Oct 30, 2023
Merged

Support recursive condition #114

merged 12 commits into from Oct 30, 2023

Conversation

w0rmr1d3r
Copy link
Member

@w0rmr1d3r w0rmr1d3r commented Oct 27, 2023

There was an issue (bug or undeveloped feature) of not being able to resolve conditions when they were nested/recursive between them.
Found in some CF templates.

With this PR, pycfmodel is able to resolve conditions that depend on other conditions.
If a condition depends on another non-resolved condition, CloudFormation itself will fail as well.

Added the pytest-repeat as a way to proof conditions in the template will always follow the same order.
Package is reliable:

@w0rmr1d3r w0rmr1d3r self-assigned this Oct 27, 2023
@w0rmr1d3r w0rmr1d3r marked this pull request as ready for review October 27, 2023 13:53
ignaciobolonio
ignaciobolonio previously approved these changes Oct 27, 2023
Copy link
Contributor

@ignaciobolonio ignaciobolonio left a comment

Choose a reason for hiding this comment

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

Great work 😄

@w0rmr1d3r w0rmr1d3r marked this pull request as draft October 30, 2023 08:35
@w0rmr1d3r w0rmr1d3r merged commit 32262eb into master Oct 30, 2023
7 checks passed
@w0rmr1d3r w0rmr1d3r deleted the support_recursive_condition branch October 30, 2023 08:55
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.

None yet

3 participants