aws / aws/aws-cdk

Invalid request provided: AWS::GuardDuty::Detector"

Open
#30,476 7 comments 2 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
1d 19h
Merged PRs (30d)
74

Description

### Describe the bug

I can't build the cdk app with Detector setting, they always fail no matter which option I throw to them. And the error return is not clear for me to solve the problem

### Expected Behavior

build success

### Current Behavior

Resource handler returned message: "Invalid request provided: AWS::GuardDuty::Detector" (RequestToken: 386124a9-63b8-fc97-1a1f-df2f79c895c2, HandlerErrorCode: InvalidRequest)

### Reproduction Steps

``` typescript
const guardDuty = new CfnDetector(this, GUARD_DUTY_ID, {
enable: true,
}
```

### Possible Solution

_No response_

### Additional Information/Context

_No response_

### CDK CLI Version

2.143.0

### Framework Version

_No response_

### Node.js Version

20.10.0

### OS

Linux

### Language

TypeScript

### Language Version

Typescript 5.4.5

### Other information

_No response_

Contributor guide

Open the contributing guide

Research direction

Start with the provided TypeScript CfnDetector reproduction using CDK CLI 2.143.0, then investigate the AWS::GuardDuty::Detector deployment error and its unclear message. Done means the detector builds successfully with the reported configuration and failures provide actionable information.

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
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.