-
Notifications
You must be signed in to change notification settings - Fork 72
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
How do I use cfn-lint-spec.json? #102
Comments
I got slightly further by writing a custom schema. With it cfn-lint validates the type name but seems to ignore the properties. See aws-cloudformation/cfn-lint#2794 for details. |
For now I just ignore the warning on each assignment group with resource-level metadata. It fits on one extra line so it's not too ugly. Resources:
AssignmentGroup:
Type: SSOUtil::SSO::AssignmentGroup
Metadata: {cfn-lint: {config: {ignore_checks: [E3001]}}} |
Just checking, the parameter according to the docs is |
Well spotted! Thanks for your help. Awesome as always. The complete working command is: cfn-lint --template Macro-Test.yaml --region eu-central-1 --override-spec cfn-lint-spec.json |
Re-opening this as I should update the docs with this info. |
I want cfn-lint to validate my
SSOUtil::SSO::AssignmentGroup
resources instead of just breaking on them.Here's my test template:
By default cfn-lint of course fails to recognize the custom type.
When I found cfn-lint-spec.json I supposed that it would solve the problem, but I can't figure out how to use it.
cfn-lint fails in the same way when I pass the file via
--spec-override
.What am I missing?
The text was updated successfully, but these errors were encountered: