-
Notifications
You must be signed in to change notification settings - Fork 4k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Invalid request provided: AWS::GuardDuty::Detector" #30476
Comments
This is a L1 construct and is pretty mush 1:1 mapping to the CFN resource. Are you able to create that with the examples provided in the CFN doc here? |
@pahud I'm only using CDK and don't know how to use CFN, but with translate to cdk, the same thing happen and I'm stuck with those errors above |
This seems to be pretty inconsistent, as I'm having a similar issue. I managed to get a it working for a simple setup like yours no problem, and when I add dataSources it continues to work. However when I add the "features" section as below I also get an Invalid request provided error:
|
I am also having this problem.. I am trying to add features through cloudformation, and getting the same errors as you guys
|
Well.. This is a contradictory error.. I found while digging into cloudtrail that there are some |
@mparmer thanks for the tip to look into CloudTrail - saved me hours of stupid trial and error 🙏 (as it is usually the case with this 🤬 useless generic error messages of CloudFormation...). Just in case anyone else stumbles across this issue: there are several different reasons for this generic deployment error (like specifying certain combinations of features together or if you provide feature names, that can be returned but are not allowed as input). Of course there's no decent documentation about that. But after filtering for It would be really great, if these checks could already be performed upfront in a L2 construct, as it would tremendously reduce the wasted time of developers. |
I am having a similar issue when trying to build an L2 construct. It seems the generated L1 construct is not complete. If you look at the documentation for CfnDetector construct and attempt to use the provided example typescript you will receive:
Same goes for malware protection and features. If you look at the generated construct
You can see that it seems to be missing the properties mentioned in the CloudFormation documentation. I could be mistaken, but any guidance would be appreciated. |
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
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
The text was updated successfully, but these errors were encountered: