Commands Cheat Sheet

Evaluating engineering tools? Get the comparison in Google Sheets

(Perfect for making buy/build decisions or internal reviews.)

Most-used commands
Your email is safe thing.

Thankyou for your submission

We have sent the cheatsheet on your email!
Oops! Something went wrong while submitting the form.

Connection

aws configure
Configure AWS CLI with access key, secret key, region, and output format

aws kinesis help
Display AWS Kinesis CLI help documentation

Stream Operations

aws kinesis create-stream --stream-name --shard-count
Create a new Kinesis data stream

aws kinesis delete-stream --stream-name
Delete a Kinesis data stream

aws kinesis list-streams
List all Kinesis streams in your account

aws kinesis describe-stream --stream-name
Get detailed information about a stream

aws kinesis update-shard-count --stream-name --target-shard-count --scaling-type UNIFORM_SCALING
Change the number of shards in a stream

Data Operations

aws kinesis put-record --stream-name --data --partition-key
Write a single data record to a stream

aws kinesis put-records --stream-name --records file://records.json
Write multiple data records to a stream

aws kinesis get-records --shard-iterator
Retrieve data records from a shard

aws kinesis get-shard-iterator --stream-name --shard-id --shard-iterator-type
Get a shard iterator for reading data

Monitoring

aws kinesis describe-stream-summary --stream-name
Get summary of stream capacity and usage

aws cloudwatch get-metric-statistics --namespace AWS/Kinesis --metric-name --dimensions Name=StreamName,Value= --start-time --end-time --period --statistics
Get Kinesis metrics from CloudWatch

Consumers

aws kinesis register-stream-consumer --stream-arn --consumer-name
Register a consumer with enhanced fan-out

aws kinesis list-stream-consumers --stream-arn
List all consumers registered with a stream

aws kinesis describe-stream-consumer --stream-arn --consumer-name
Get details about a specific consumer

aws kinesis deregister-stream-consumer --stream-arn --consumer-name
Deregister a consumer from a stream

Tags

aws kinesis add-tags-to-stream --stream-name --tags
Add tags to a stream

aws kinesis list-tags-for-stream --stream-name
List all tags for a stream

aws kinesis remove-tags-from-stream --stream-name --tag-keys
Remove tags from a stream