aws-cloudformation / cloudformation-resource-schema

The CloudFormation Resource Schema defines the shape and semantic for resources provisioned by CloudFormation. It is used by provider developers using the CloudFormation RPDK.
Apache License 2.0
95 stars 38 forks source link

Validation: Resource property cannot set readOnly properties #102

Open wbingli opened 4 years ago

wbingli commented 4 years ago

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

PatMyron commented 3 years ago

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