Claus Ibsen created CAMEL-27849:
-----------------------------------
Summary: camel-aws-config: the producer health check calls
listDiscoveredResources without the required resource type
Key: CAMEL-27849
URL: https://issues.apache.org/jira/browse/CAMEL-27849
Project: Camel
Issue Type: Bug
Components: camel-aws
Reporter: Claus Ibsen
Fix For: 4.25.0
Found while improving the option descriptions of camel-aws-config for
CAMEL-23832 (pull request https://github.com/apache/camel/pull/31143).
This is a separate problem of the component; the descriptions change only
documents the current behavior.
h4. The health check probably always reports DOWN
{{AWSConfigProducerHealthCheck.doCall}} calls
listDiscoveredResources(ListDiscoveredResourcesRequest.builder().build())
without a resourceType, which the AWS Config API requires (the CLI has
--resource-type as mandatory), so the service would answer with a
ValidationException and the check goes DOWN. Not verified against AWS: the SDK
has no required trait for it, and the unit test only covers an invalid region.
Proposed change: use a call with no required input, such as
describeConfigRules().
_Claude Code on behalf of davsclaus_
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)