You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have 17 state machines visible in the Step Functions Console on my AWS Account and all of them have the status Active.
When calling the list-state-machines command on AWS CLI, only 14 state machines are returned, and there is no nextToken present on the response to ask for a next page.
I also tried using --max-items 10 and it gave me a token. But when fetching the second page, it also only had 4 records, totalling 14 again. There's always 3 records missing from the response.
Expected Behavior
Expected all 17 state machines to be returned since they are all active.
Current Behavior
Only 14 state machines are returned from a total of 17.
Reproduction Steps
I'm just calling aws stepfunctions list-state-machines --profile my-profile-here
Possible Solution
No response
Additional Information/Context
This behavior also happens when using the AWS JavaScript SDK v3 and calling the ListStateMachinesCommand.
CLI version used
2.7.33
Environment details (OS name and version, etc.)
macOS Sonoma 14.2.1, Python/3.9.11
The text was updated successfully, but these errors were encountered:
This operation is eventually consistent. The results are best effort and may not reflect very recent updates and changes.
Being eventually consistent is pretty awful.. what good is an API to list my resources if it won't return everything I need?
This should at least be mentioned in the CLI and SDK documentations as well.
This issue is now closed. Comments on closed issues are hard for our team to see.
If you need more assistance, please open a new issue that references this one.
Describe the bug
I have 17 state machines visible in the Step Functions Console on my AWS Account and all of them have the status
Active
.When calling the
list-state-machines
command on AWS CLI, only 14 state machines are returned, and there is nonextToken
present on the response to ask for a next page.I also tried using
--max-items 10
and it gave me a token. But when fetching the second page, it also only had 4 records, totalling 14 again. There's always 3 records missing from the response.Expected Behavior
Expected all 17 state machines to be returned since they are all active.
Current Behavior
Only 14 state machines are returned from a total of 17.
Reproduction Steps
I'm just calling
aws stepfunctions list-state-machines --profile my-profile-here
Possible Solution
No response
Additional Information/Context
This behavior also happens when using the AWS JavaScript SDK v3 and calling the ListStateMachinesCommand.
CLI version used
2.7.33
Environment details (OS name and version, etc.)
macOS Sonoma 14.2.1, Python/3.9.11
The text was updated successfully, but these errors were encountered: