In this exercise you will use AWS CLI to try out the streams API.
aws dynamodb update-table \
--table-name Employee \
--stream-specification StreamEnabled=true,StreamViewType=NEW_AND_OLD_IMAGES \
--endpoint-url http://localhost:8000
aws dynamodbstreams list-streams \
--endpoint-url http://localhost:8000
aws dynamodbstreams describe-stream --stream-arn REPLACE_WITH_STREAM_ARN \
--endpoint-url http://localhost:8000
aws dynamodbstreams get-shard-iterator \
--stream-arn REPLACE_WITH_STREAM_ARN \
--shard-id REPLACE_WITH_SHARD_ID \
--shard-iterator-type TRIM_HORIZON \
--endpoint-url http://localhost:8000
aws dynamodbstreams get-records \
--shard-iterator REPLACE_WITH_ITERATOR \
--endpoint-url http://localhost:8000
Disable:
aws dynamodb update-table \
--table-name Employee \
--stream-specification StreamEnabled=false \
--endpoint-url http://localhost:8000
Enable:
aws dynamodb update-table \
--table-name Employee \
--stream-specification StreamEnabled=true,StreamViewType=NEW_AND_OLD_IMAGES \
--endpoint-url http://localhost:8000