aws / aws/aws-cdk

redshift: CfnCluster CreateCluster : Debug message

Open
#30,619 4 comments 0 reactions 0 assignees View on GitHub
@aws-cdk/custom-resources bug effort/small p3
Dominant language
TypeScript
Stars
12.9k
Forks
4.6k
Avg merge
2d 3h
Merged PRs (30d)
83

Description

### Describe the bug

Redshift cluster would not deploy, and the error message was "Error Message: Not Found Resource of type '%s' with identifier '%s' was not found". This led to a trial-and-error debug session that took some time. This issue asks to update this error messaging.

### Expected Behavior

The condition should give a more descriptive error, such as:

ManageMasterPassword is false/not set and MasterUserPassword is not provided.

### Current Behavior

HelloCdkStack | 0/3 | 12:50:14 PM | UPDATE_FAILED | AWS::Redshift::Cluster | DemoCfnCluster Resource handler returned message: "Cluster democlusterid5 Not Found Resource of type '%s' with identifier '%s' was not found." (RequestToken: ec18d1c3-6003-09e1-f260-5f747d4619c1, HandlerErrorCode: NotFound)

### Reproduction Steps

CreateCluster
* Do not provide MasterUserPassword
* Do not provide ManageMasterPassword

### Possible Solution

The condition should give a more descriptive error, such as:

ManageMasterPassword is false/not set and MasterUserPassword is not provided.

### Additional Information/Context

N.A.

### CDK CLI Version

2.142.1

### Framework Version

2.142.1

### Node.js Version

10.9.2

### OS

MacOS

### Language

TypeScript

### Language Version

5.3.3

### Other information

HelloCdkStack | 0/3 | 12:50:14 PM | UPDATE_FAILED | AWS::Redshift::Cluster | DemoCfnCluster Resource handler returned message: "Cluster democlusterid5 Not Found Resource of type '%s' with identifier '%s' was not found." (RequestToken: ec18d1c3-6003-09e1-f260-5f747d4619c1, HandlerErrorCode: NotFound)

"devDependencies": {
"@types/jest": "^29.5.12",
"@types/node": "20.12.7",
"jest": "^29.7.0",
"ts-jest": "^29.1.2",
"aws-cdk": "2.141.0",
"ts-node": "^10.9.2",
"typescript": "~5.4.5"
},
"dependencies": {
"aws-cdk-lib": "2.141.0",
"constructs": "^10.0.0",
"source-map-support": "^0.5.21"
}

Contributor guide

Open the contributing guide

Research direction

The issue identifies the CfnCluster CreateCluster path and provides reproduction steps: omit MasterUserPassword and ManageMasterPassword. Start by locating that implementation and its existing error handling; done means this configuration produces a descriptive validation error instead of the generic NotFound message.

Written by the indexing model from the issue text.

Assessment

Tech stack
aws, typescript
Domain
cloud, infrastructure
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.