-
Notifications
You must be signed in to change notification settings - Fork 588
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
False errors given with property relationships when conditions are used #112
Comments
Working to invalidate pull request #121. When the condition numbers are high the scenarios get large and can cause linting to be slow. As it exists #121 will build a list of scenarios for the conditions. That logic may have to be moved to a new rule that checks if Ref/GetAtt/DependsOn resources exist when using resource level conditions. Conditions when used in place of a resource property have to be singular.
is valid but the following is invalid because you cannot put an Fn::If with other properties. (Still double checking this)
This means our Inclusive and Exclusive checks will be easier to write. If someone puts a condition in the properties section there isn't a mixing of properties from inside and outside of the condition that will cause confusion. |
starting with pull request #523 Next will be to get property values when conditions are used for values of those properties. |
Facing a similar issue with E2540 linting error. Error :
Template
|
@ap-hyperbole been working on a bunch of logic to make this easier. I think I can work on this after I get #746 done. That one will basically strip out all the conditions from a nested object giving us the different scenarios to test. |
Right now we check for attributes that should or shouldn't be defined together. These scenarios can get tricky with conditions and AWS::NoValue.
Related issues:
The text was updated successfully, but these errors were encountered: