mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-06-05 12:45:59 +02:00
aws-kinesis: add page (#4510)
This commit is contained in:
parent
44cdd27869
commit
7fcea618b7
1 changed files with 28 additions and 0 deletions
28
pages/common/aws-kinesis.md
Normal file
28
pages/common/aws-kinesis.md
Normal file
|
@ -0,0 +1,28 @@
|
|||
# aws kinesis
|
||||
|
||||
> Official AWS CLI for Amazon Kinesis streaming data services.
|
||||
> More information: <https://docs.aws.amazon.com/cli/latest/reference/kinesis/index.html#cli-aws-kinesis>.
|
||||
|
||||
- Show all streams in the account:
|
||||
|
||||
`aws kinesis list-streams`
|
||||
|
||||
- Write one record to a Kinesis stream:
|
||||
|
||||
`aws kinesis put-record --stream-name {{name}} --partition-key {{key}} --data {{base64_encoded_message}}`
|
||||
|
||||
- Write a record to a Kinesis stream with inline base64 encoding:
|
||||
|
||||
`aws kinesis put-record --stream-name {{name}} --partition-key {{key}} --data "$( echo "{{my raw message}}" | base64 )"`
|
||||
|
||||
- List the shards available on a stream:
|
||||
|
||||
`aws kinesis list-shards --stream-name {{name}}`
|
||||
|
||||
- Get a shard iterator for reading from the oldest message in a stream's shard:
|
||||
|
||||
`aws kinesis get-shard-iterator --shard-iterator-type TRIM_HORIZON --stream-name {{name}} --shard-id {{id}}`
|
||||
|
||||
- Read records from a shard, using a shard iterator:
|
||||
|
||||
`aws kinesis get-records --shard-iterator {{iterator}}`
|
Loading…
Add table
Reference in a new issue