Open iainelder opened 1 year ago
I got slightly further by writing a custom schema. With it cfn-lint validates the type name but seems to ignore the properties. See https://github.com/aws-cloudformation/cfn-lint/issues/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 --override-spec
, in your example you've got --spec-override
?
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?