Skip to content

Instantly share code, notes, and snippets.

@renatoapcosta
Last active November 27, 2022 17:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save renatoapcosta/d89a360af04fcec806ec06334e4d9433 to your computer and use it in GitHub Desktop.
Save renatoapcosta/d89a360af04fcec806ec06334e4d9433 to your computer and use it in GitHub Desktop.
Kinesis AWS

Kinesis AWS

aws kinesis describe-stream --stream-name meu-primeiro-stream

aws kinesis put-record --stream-name meu-primeiro-stream --data "mensagem teste" --partition-key usuario_1234


aws kinesis get-shard-iterator --stream-name meu-primeiro-stream --shard-id shardId-00000000000 --shard-iterator-type TRIM_HORIZON


aws kinesis get-records --shard-iterator "sasasasasasa=="

Vamos obter o PartitionKey, para ler a mensagem precisamos a coluna Data que vem em base64

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment