capabilities.work

Create Stream and Put First Record

A 3-step recipe with Amazon Kinesis. We can help you get access.

Recipe · 3 steps

Create Stream and Put First Record

Create a stream, poll until ACTIVE, then put the first record.

  1. Create the provisioned data stream with the requested shard count.
  2. Poll the stream summary, looping while CREATING and advancing to write the record once the stream is ACTIVE.
  3. Write the first data record into the now-active stream, returning the shard id and sequence number assigned to the record.
What you'll need to have ready
  • streamName: The name of the Kinesis data stream to create.
  • shardCount: The number of shards for the provisioned stream.
  • data: The Base64-encoded data blob to write into the first record.
  • partitionKey: The partition key used to assign the record to a shard.
For your developer

Arazzo workflow amazon-kinesis:create-stream-and-put-record, 3 operations: CreateStream → DescribeStreamSummary → PutRecord. Specs on APIs.io.