Skip to content

bug: Kinesis PutRecord/PutRecords does not support stream ARN #7654

@56KBs

Description

@56KBs

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

When attempting to call PutRecord or PutRecords with a stream-arn, localstack returns an error:

An error occurred (InternalError) when calling the PutRecord operation (reached max retries: 4): exception while calling kinesis.PutRecord: KinesisProvider.put_record() got an unexpected keyword argument 'stream_arn'

Expected Behavior

Successful putting of records

How are you starting LocalStack?

With a docker-compose file

Steps To Reproduce

How are you starting localstack (e.g., bin/localstack command, arguments, or docker-compose.yml)

docker run localstack/localstack

Client commands (e.g., AWS SDK code snippet, or sequence of "awslocal" commands)

awslocal kinesis create-stream --stream-name example
awslocal kinesis describe-stream --stream-name example <-- extract StreamARN
root@edab333956f5:/opt/code/localstack# awslocal kinesis put-record --stream-arn arn:aws:kinesis:eu-west-2:000000000000:stream/example --data 'example' --partition-key 1

Environment

- OS: Ubuntu 20.04
- LocalStack: Latest

Anything else?

put_record does not allow stream_arn as an argument: https://github.com/localstack/localstack/blob/master/localstack/services/kinesis/provider.py#L116-L124

put_records does not allow stream_arn as an argument: https://github.com/localstack/localstack/blob/master/localstack/services/kinesis/provider.py#L133-L135

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions