AWS CLI
Written by
Updated at May 13, 2024
Note
You can create a trigger that will launch a function in Cloud Functions or a container in Serverless Containers when data is sent to the stream. Read more about triggers for Data Streams.
-
In the management console
, select the folder with the stream. -
Select Data Streams.
-
Select the data stream.
-
Click Connect and go to the AWS CLI tab.
-
Copy the example of the command for sending messages and run it. Data will be delivered over the AWS Kinesis Data Streams protocol.
Command example:
aws kinesis \ --endpoint https://yds.serverless.yandexcloud.net \ put-record \ --stream-name /ru-central1/aoegtvhtp8ob********/cc8004q4lbo6********/test \ --cli-binary-format raw-in-base64-out \ --data '{"user_id":"user1", "score": 100}' \ --partition-key 1
Result:
{ "ShardId": "shard-000001", "SequenceNumber": "3130", "EncryptionType": "NONE" }