-
Notifications
You must be signed in to change notification settings - Fork 597
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
(AWS::SSM::Document) Invalid request provided: schemaVersion should be String
not recognized by cfn-lint
#2728
Comments
we would like to help cover this but we will need to develop some content ourselves for this. Currently Content in the spec is listed as We do this for step functions, IAM policies, and some other areas but we have not tackled the SSM doc content as of yet. |
@kddejong I would like to contribute to this issue. I saw we have defined 'Content' as json in cfn-lint\test\fixtures\specs\us-east-1.json. Can you please guide me towards the implementation we have done for step functions and IAM policies in such similar situations? |
If we create some JSON schemas we can use those to validate SSM documents. Looks like that was started here but hasn't been updated in a while. https://github.com/aws/amazon-ssm-document-language-service/blob/master/src/schema/ssmDocumentSchema.ts |
I tried to dig through the code and similar issues from the past. Would it be the right understanding to add this json schema to all the files under cfn-lint\src\cfnlint\data\CloudSpecs*.json ? |
@ArjunMenon-bit in v1 we can add json schema docs to |
I started some schema documents in this branch and location: https://github.com/aws-cloudformation/cfn-lint/tree/feature/schemas/ssm/src/cfnlint/data/schemas/other/ssm The problem is there are a lot of versions and not a lot of documentation to fill in the gaps. |
Submitted a PR that is a minimal start to validating SSM documents. |
CloudFormation Lint Version
cfn-lint 0.77.4
What operating system are you using?
Windows 10
Describe the bug
cfn-lint is unable to recognize that
schemaVersion:
needs to be a string:CloudFormation is throwing the following exception:
Expected behavior
cfn-lint should display this as an error.
Reproduction template
The text was updated successfully, but these errors were encountered: