aws-ia / terraform-aws-guardduty

Configure and deploy AWS GuardDuty.
https://registry.terraform.io/modules/aws-ia/guardduty/aws/latest
Apache License 2.0
5 stars 8 forks source link

The request is rejected because an invalid or out-of-range value is specified as an input parameter #6

Open NethanielGabay opened 6 months ago

NethanielGabay commented 6 months ago

I am experiancing an issue with organizations_admin module fails with a wierd and missleading error at the resource 'aws_guardduty_organization_configuration'.

I believe that the resource 'aws_guardduty_organization_configuration' fails to apply due to missing depends_on for resource 'aws_guardduty_organization_admin_account'.

│ Error: updating GuardDuty Organization Configuration (8c7c91f6dfe7464da1a2aa1c408013d7): BadRequestException: The request is rejected because an invalid or out-of-range value is specified as an input parameter.
│ {
│   RespMetadata: {
│     StatusCode: 400,
│     RequestID: "0c26485a-b1eb-490e-9615-9fe57806550c"
│   },
│   Message_: "The request is rejected because an invalid or out-of-range value is specified as an input parameter.",
│   Type: "InvalidInputException"
│ }

After investigating and adding the depends_on for the aws_guardduty_organization_configuration resource locally the issue is resolved.

I will be happy to contrebute and open a PR if needed. cheers

samuelebstein commented 4 months ago

Hello, I'm running into the same issue. Could you provide a code sample of what you changed? Thanks!