Open IskanderNovena opened 2 weeks ago
Thanks for reaching out. I could reproduce this behavior, and agree that it appears to be an issue with the API rather than directly with the CLI. I'm going to reach out to the IoT team regarding this issue, as they maintain the ListJobs API. And if this behavior is expected, then I think the reasons why should be clarified in the documentation.
Quick update: the service team confirmed the issue and is working on a fix.
Describe the bug
When running
aws iot list-jobs
, all jobs are listed. When targeting a specific thing group, by passing the parameter--thing-group-name
, scheduled jobs are NOT listed.Expected Behavior
I expect the
aws iot list-jobs --thing-group-name THINGGROUP
to include ALL jobs targeted at the specified Thing group.Current Behavior
Currently it seems like only active (as in currently running/IN_PROGRESS) jobs are returned when specifying
--thing-group-name
Reproduction Steps
I've created a Thing Group
THINGGROUP
and created two jobs targeted at that group: A continuous scheduled job, and a snapshot job.Possible Solution
No response
Additional Information/Context
Using Boto3 gives the same results when passing a Thing group name. So it might be an API issue and not specifically an AWS CLI issue.
CLI version used
aws-cli/2.17.51 Python/3.11.9 Darwin/23.6.0 exe/x86_64
Environment details (OS name and version, etc.)
Darwin laptop 23.6.0 Darwin Kernel Version 23.6.0: Mon Jul 29 21:14:30 PDT 2024; root:xnu-10063.141.2~1/RELEASE_ARM64_T6000 arm64