Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

list-state-machines does not return all records #8541

Closed
danielsitnik opened this issue Feb 20, 2024 · 2 comments
Closed

list-state-machines does not return all records #8541

danielsitnik opened this issue Feb 20, 2024 · 2 comments
Labels
bug This issue is a bug. needs-triage This issue or PR still needs to be triaged.

Comments

@danielsitnik
Copy link

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 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

@danielsitnik danielsitnik added bug This issue is a bug. needs-triage This issue or PR still needs to be triaged. labels Feb 20, 2024
@danielsitnik
Copy link
Author

Nevermind, just found this note on the API documentation:

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.

Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This issue is a bug. needs-triage This issue or PR still needs to be triaged.
Projects
None yet
Development

No branches or pull requests

1 participant