[ 
https://issues.apache.org/jira/browse/CAMEL-27849?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Claus Ibsen updated CAMEL-27849:
--------------------------------
    Description: 
Found while improving the option descriptions of camel-aws-config for 
CAMEL-23832 (commit 
https://github.com/apache/camel/commit/387f7ff0b6ea13b1acc5d8ca1e8ae0ec8dbee737,
 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_

  was:
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_


> 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
>            Priority: Minor
>             Fix For: 4.25.0
>
>
> Found while improving the option descriptions of camel-aws-config for 
> CAMEL-23832 (commit 
> https://github.com/apache/camel/commit/387f7ff0b6ea13b1acc5d8ca1e8ae0ec8dbee737,
>  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)

Reply via email to