You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
By default cfn-lint of course fails to recognize the custom type.
$ cfn-lint --template Macro-Test.yaml --region eu-central-1E3001 Invalid or unsupported Type SSOUtil::SSO::AssignmentGroup for resource AssignmentGroup in eu-central-1Macro-Test.yaml:19:5
I think I'm supposed to use --registry-schemas to solve this, but I've had limited success because of the missing documentation.
#2321 says that to lint Datadog::Monitors::Monitor you need to pass a directory of third-party resource schemas and points to #1732 for a partial solution.
SSOUtil::SSO::AssignmentGroup is not a real registered type, but is faked by macro preprocessing, so there is no schema to download. As far as I know, no one ever wrote that schema.
I created a file called custom-schema/AssignmentGroup.json with this content:
{
"typeName": "SSOUtil::SSO::AssignmentGroup"
}
cfn-lint produces no output when I pass the the folder name, which I think means it now at least accepts the type name.
cfn-lint Version
cfn-lint 0.78.1
Provide additional details e.g. code snippets. Be sure to remove any sensitive data.
I want to use aws-sso-util and cfn-lint together. aws-sso-util provides a macro which fakes a custom type called
SSOUtil::SSO::AssignmentGroup
.My template looks like this:
By default cfn-lint of course fails to recognize the custom type.
I think I'm supposed to use
--registry-schemas
to solve this, but I've had limited success because of the missing documentation.#2321 says that to lint
Datadog::Monitors::Monitor
you need to pass a directory of third-party resource schemas and points to #1732 for a partial solution.SSOUtil::SSO::AssignmentGroup
is not a real registered type, but is faked by macro preprocessing, so there is no schema to download. As far as I know, no one ever wrote that schema.I created a file called
custom-schema/AssignmentGroup.json
with this content:cfn-lint produces no output when I pass the the folder name, which I think means it now at least accepts the type name.
$ cfn-lint --template Macro-Test.yaml --region eu-central-1 --registry-schemas custom-schema/
I also want to validate the properties, and this is where I get lost.
I extend the custom schema to look like this:
My intention is to declare a required Color property. This should make cfn-lint fail again because my template doesn't have a Color property anywhere.
But cfn-lint still gives no output in this case.
There might be something wrong with the schema, but I'm unsure how to validate it.
What am I missing?
The text was updated successfully, but these errors were encountered: