-
Notifications
You must be signed in to change notification settings - Fork 596
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
[Bug] Impossible, rules-unaware condition errors #3630
Comments
Duplicate #1888. We would need to add support for Rules. |
Yea, but with the change of |
Also as provided by the CloudFormation service |
@kddejong thanks for the followup and for the docs references. I updated a template I was actually using with the new list-based |
Working on the Condition portion of this today. |
CloudFormation Lint Version
1.11.0
What operating system are you using?
Mac
pre-commit
Describe the bug
The reproduction template throws:
Specifically, the purported hypothetical situation
is impossible per the
ProvisionVpc
rule.Expected behavior
The lint should pass, without having to duplicate
ProvisionVpc
rule logic inthe
ProvisionVpc
condition. E.g. while updating the condition to:results in a successful lint, this situation requires duplicate definitions
just to satisfy the linter, thus reducing maintainability.
Moreover, since
cfn-lint
's static analysis is based off of conditions insteadof rules (presumably, based on the reproduction template), templates that pass
lints might not preserve the intended behavior if a cascaded condition is added
without an accompanying duplicate rule.
Reproduction template
The text was updated successfully, but these errors were encountered: