Using AWS CLI

We can create a KDS from the AWS CLI as follows:

aws kinesis create-stream 
--stream-name my-first-kinesis-stream
--shard-count 1
--profile admin

This command will not return anything. You may use the aws kinesis describe-stream command to get the details of the stream: 

aws kinesis describe-stream 
--stream-name my-first-kinesis-stream
--profile admin

If stream creation happened successfully, you should see the StreamStatus as ACTIVE, as shown in the following screenshot:

You can also list the streams available using aws kinesis list-streams, as shown in the following code:

aws kinesis list-streams 
--profile admin

This should return the following response in our case (assuming you have only one stream):

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.145.179.225