无法在本地启用Kinesis数据流作为DynamoDB的目标流
我有一个项目,必须在其中使用运动动力学数据流捕获DynamoDB表更改事件。 以下是我在本地上执行的操作顺序:
- 启动DDB容器: aws-dynamodb-local 。在端口8000上
- 启动运动式容器: aws-kinesis-local 。在端口8001上
- 创建一个新的DDB表:
aws dynamodb create-table \
--table-name Music \
--attribute-definitions \
AttributeName=Artist,AttributeType=S \
AttributeName=SongTitle,AttributeType=S \
--key-schema \
AttributeName=Artist,KeyType=HASH \
AttributeName=SongTitle,KeyType=RANGE \
--provisioned-throughput \
ReadCapacityUnits=5,WriteCapacityUnits=5 \
--table-class STANDARD --endpoint-url=http://localhost:8000
- 创建一个新的流:
aws kinesis create-stream --stream-name samplestream --shard-count 3
--endpoint-url=http://localhost:8001
- 启用表上的运动流以捕获变更事件:
aws dynamodb enable-kinesis-streaming-destination \
--table-name Music \
--stream-arn arn:aws:kinesis:us-east-1:000000000000:stream/samplestream
--endpoint-url=http://localhost:8000
An error occurred (UnknownOperationException) when calling the EnableKinesisStreamingDestination operation:
有人可以在这里帮助我了解我在这里做错了什么吗? 如何在本地中解决上述未知访问感应?
LocalStack提供了一种简单的配置方法,但是LocalStack的DynamoDB的性能非常差,因此我试图为设置找到另一种方法。
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
截至写作时,DynamoDB本地和 https://github.com/saidsefef /aws-kinesis-local 。 DynamoDB Local本身不支持流向今天的本地运动式数据流(仅支持DynamoDB流)。
As of writing, there is no integration support between DynamoDB Local and https://github.com/saidsef/aws-kinesis-local. DynamoDB Local itself does not support streaming to a local Kinesis Data Stream today (only supports DynamoDB Stream).