aws-cloudformation / aws-cloudformation/cloudformation-cli-typescript-plugin

Improve error message for immutable desired state

Open
#37 0 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
TypeScript
Stars
46
Forks
18
PR merge metrics
No merged PRs in 30d

Description

If you try to change a property of the desired state (which is immutable), you will get the following JavaScript default message:
> Cannot assign to read only property 'arn' of object '#'

We should tell the developer to instantiate a new Resource Model, instead.

Contributor guide

Open the contributing guide

Research direction

Search the repository for the immutable desired-state handling and the current "Cannot assign to read only property" message, then trace how ResourceModel instances are created. Update the resulting error guidance to tell developers to instantiate a new Resource Model and verify that the revised message appears for an attempted property change.

Written by the indexing model from the issue text.

Assessment

Tech stack
node.js, typescript
Domain
cloud, tooling
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.