-
Notifications
You must be signed in to change notification settings - Fork 163
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
catch common resource schema issues in cfn validate #668
Conversation
continuing #663 readOnlyProperties overlapping with required: AWS::CodeArtifact::Repository.DomainName AWS::MWAA::Environment.Name
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Want to add another test schema/modify a test schema for this case? it's kind of overshadowed in its branch because the other conditions trip it
Yeah, that's why I didn't commit it, but I manually tested with this resource schema: {
"typeName" : "AWS::Service::Type",
"description" : "",
"additionalProperties" : false,
"properties" : {
"Property" : {
"type" : "string"
}
},
"readOnlyProperties": [
"/properties/Property"
],
"required": [
"Property"
],
"primaryIdentifier" : [ "/properties/Property" ]
} readOnlyProperties cannot be specified by customers and should not overlap with writeOnlyProperties, createOnlyProperties, or required: {'/properties/Property'} |
) & ( | ||
set(resource_spec.get("createOnlyProperties", [])) | ||
| set(resource_spec.get("writeOnlyProperties", [])) | ||
| {"/properties/" + s for s in resource_spec.get("required", [])} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
think this wouldn't catch nested required
properties overlapping with readOnlyProperties
continuing aws-cloudformation#663 readOnlyProperties overlapping with required: AWS::CodeArtifact::Repository.DomainName AWS::MWAA::Environment.Name
continuing aws-cloudformation#663 readOnlyProperties overlapping with required: AWS::CodeArtifact::Repository.DomainName AWS::MWAA::Environment.Name
continuing #663
readOnlyProperties overlapping with required:
AWS::CodeArtifact::Repository.DomainName
AWS::MWAA::Environment.Name
how to run new validations on all existing resource provider schemas