1.创建stream
aws kinesis create-stream --stream-name Foo --shard-count 1
2.删除stream
aws kinesis delete-stream --stream-name Foo
aws dynamodb delete-table --table-name Foo
4.split 分片
aws kinesis split-shard --stream-name Foo \
--shard-to-split shardId-000000000000 \
--new-starting-hash-key 170141183460469231731687303715884105727
5.merge分片
aws kinesis merge-shards --stream-name Foo \
--shard-to-merge shardId-000000000001 \
--adjacent-shard-to-merge shardId-000000000002
6.查看分片状态
aws kinesis describe-stream --stream-name Foo
aws kinesis list-streams
8.放置记录
aws kinesis put-record --stream-name Foo --partition-key 123 --data testdata
9.读取记录
aws kinesis get-shard-iterator --shard-id shardId-000000000000 --shard-iterator-type TRIM_HORIZON --stream-name Foo
10.创建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=1,WriteCapacityUnits=1