cloudformation-resource-schema icon indicating copy to clipboard operation
cloudformation-resource-schema copied to clipboard

Validation: Resource property cannot set readOnly properties

Open wbingli opened this issue 4 years ago • 1 comments

Currently, if set a value for a readOnlyProperties, this will be silently ignored. We should have validation to enforce this validation.

wbingli avatar Sep 02 '20 05:09 wbingli

catching some of these in cfn validate because readOnlyProperties should never overlap with writeOnlyProperties or createOnlyProperties or required: https://github.com/aws-cloudformation/cloudformation-cli/pull/663 https://github.com/aws-cloudformation/cloudformation-cli/pull/668

still not sure why CloudFormation diverged from readOnly and writeOnly as defined in JSON schema itself

PatMyron avatar Feb 05 '21 00:02 PatMyron