-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Open
Labels
bugThis issue is a bug.This issue is a bug.kinesisp2This is a standard priority issueThis is a standard priority issuepotential-regressionMarking this issue as a potential regression to be checked by team memberMarking this issue as a potential regression to be checked by team member
Description
Describe the bug
when i call list-shards for an existing stream-name or stream-arn, without providing --next-token, awscli complains that i shouldn't provide stream ident and next token at once.
Regression Issue
- Select this option if this issue appears to be a regression.
Expected Behavior
Expect a valid ListShards response. Note that this works in boto3:
Python 3.12.9 (main, Feb 4 2025, 14:38:38) [Clang 16.0.0 (clang-1600.0.26.6)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import boto3
>>> boto3.__version__
'1.40.0'
>>> str(
... boto3.Session(profile_name="test", region_name="us-east-1")
... .client("kinesis")
... .list_shards(StreamName="geaccounting-datos-v2-data-qa")
... )[:50]
"{'Shards': [{'ShardId': 'shardId-000000002643', 'P"
Current Behavior
$ aws --version
aws-cli/2.28.0 Python/3.13.5 Darwin/24.2.0 source/arm64
$ aws --profile <PROFILE> --region <REGION> kinesis list-shards --stream-name <NAME>
An error occurred (InvalidArgumentException) when calling the ListShards operation: NextToken and StreamARN cannot be provided together.
Reproduction Steps
see "current behavior"
Possible Solution
No response
Additional Information/Context
No response
CLI version used
aws-cli/2.28.0 Python/3.13.5 Darwin/24.2.0 source/arm64
Environment details (OS name and version, etc.)
Darwin/24.2.0 source/arm64
Metadata
Metadata
Assignees
Labels
bugThis issue is a bug.This issue is a bug.kinesisp2This is a standard priority issueThis is a standard priority issuepotential-regressionMarking this issue as a potential regression to be checked by team memberMarking this issue as a potential regression to be checked by team member