Skip to content

Commit 6856a3c

Browse files
author
Andreas Motl
committed
Carabas: Update documentation
1 parent 8bf1869 commit 6856a3c

File tree

5 files changed

+32
-17
lines changed

5 files changed

+32
-17
lines changed

CHANGES.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Changelog
22

33
## in progress
4-
- Started unlocking AWS Kinesis stream sources
4+
- Carabas: A subsystem to divert workloads to other people’s computers
55

66
## 2024-07-10 v0.0.2
77
- Initial working version, supporting MQTT, AMQP, and SQLAlchemy/CrateDB

doc/carabas/dms/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ help.
2626
### Install
2727
Install LorryStream.
2828
```shell
29-
pip install lorrystream
29+
pip install --upgrade 'lorrystream[carabas]'
3030
```
3131
Acquire IaC driver program.
3232
```shell

doc/carabas/kcl/dynamodb.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -121,15 +121,16 @@ aws kinesis delete-stream --stream-name dynamodb-cdc --enforce-consumer-deletion
121121

122122
Acquire sources and initialize sandbox.
123123
```shell
124-
git clone https://github.com/daq-tools/lorrystream --branch=kinesis
124+
git clone https://github.com/daq-tools/lorrystream
125125
cd lorrystream
126126
python3 -m venv .venv
127127
source .venv/bin/activate
128+
pip install --editable='.[carabas]'
128129
```
129130

130131
Install dependencies, mainly the [amazon-kclpy] package.
131132
```shell
132-
cd lorrystream/dynamodb_cloud
133+
cd lorrystream/spike/kcl_dynamodb
133134
pip install wheel
134135
pip install --verbose -r requirements.txt
135136
```
@@ -141,7 +142,7 @@ virtualenv on the top-level directory. Then, navigate to the playground
141142
directory, and seed AWS credentials.
142143
```shell
143144
source .venv/bin/activate
144-
cd lorrystream/dynamodb_cloud
145+
cd lorrystream/spike/kcl_dynamodb
145146
export AWS_ACCESS_KEY=...
146147
export AWS_SECRET_ACCESS_KEY=...
147148
```

doc/carabas/kcl/kinesis.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,15 +34,16 @@ permissions to do so.
3434

3535
Acquire sources and initialize sandbox.
3636
```shell
37-
git clone https://github.com/daq-tools/lorrystream --branch=kinesis
37+
git clone https://github.com/daq-tools/lorrystream
3838
cd lorrystream
3939
python3 -m venv .venv
4040
source .venv/bin/activate
41+
pip install --editable='.[carabas]'
4142
```
4243

4344
Install dependencies, mainly the [amazon-kclpy] package.
4445
```shell
45-
cd lorrystream/kinesis
46+
cd lorrystream/spike/kcl_kinesis
4647
pip install wheel
4748
pip install --verbose -r requirements.txt
4849
```
@@ -65,7 +66,7 @@ virtualenv on the top-level directory. Then, navigate to the playground
6566
directory, and seed AWS credentials.
6667
```shell
6768
source .venv/bin/activate
68-
cd lorrystream/kinesis
69+
cd lorrystream/spike/kcl_kinesis
6970
export AWS_ACCESS_KEY=...
7071
export AWS_SECRET_ACCESS_KEY=...
7172
```

doc/source/kinesis.md

Lines changed: 22 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,19 @@
11
# Kinesis Source
22

3-
## LocalStack Testbed
4-
The recipe uses the LocalStack AWS environment to run an Amazon Kinesis surrogate.
3+
This recipe uses the LocalStack AWS environment to run an Amazon Kinesis surrogate.
54
The walkthrough follows the [Get started with Kinesis on LocalStack] tutorial.
65

6+
If you intend to invoke the commands on a real AWS environment, just use `aws`
7+
instead of `awslocal`.
8+
9+
:::{tip}
10+
LocalStack is a cloud service emulator that runs in a single container on your
11+
laptop or in your CI environment. With LocalStack, you can run your AWS
12+
applications or Lambdas entirely on your local machine without connecting to
13+
a remote cloud provider.
14+
:::
15+
16+
## Setup
717
Start the LocalStack service using Docker.
818
```shell
919
docker run \
@@ -13,17 +23,13 @@ docker run \
1323
-v /var/run/docker.sock:/var/run/docker.sock \
1424
localstack/localstack:3.6
1525
```
16-
:::{tip}
17-
LocalStack is a cloud service emulator that runs in a single container on your
18-
laptop or in your CI environment. With LocalStack, you can run your AWS
19-
applications or Lambdas entirely on your local machine without connecting to
20-
a remote cloud provider.
21-
:::
2226

2327
Install LorryStream including LocalStack CLI programs.
2428
```shell
25-
pip install lorrystream
29+
pip install --upgrade 'lorrystream[carabas]'
2630
```
31+
32+
## Configure
2733
Create a Kinesis Data Stream called `testdrive`.
2834
```shell
2935
awslocal kinesis create-stream \
@@ -43,6 +49,7 @@ Display Stream ARN.
4349
awslocal kinesis describe-stream --stream-name testdrive | jq -r .StreamDescription.StreamARN
4450
```
4551

52+
## Usage
4653
Submit an item to the data stream, using `awslocal`.
4754
```shell
4855
awslocal kinesis put-record \
@@ -64,4 +71,10 @@ export AWS_ENDPOINT_URL="http://localhost:4566"
6471
python examples/aws/kinesis_subscribe.py testdrive
6572
```
6673

74+
:::{todo}
75+
Demonstrate how to add a processor pipeline element using both either
76+
AWS Lambda, or a dedicated processor instance.
77+
:::
78+
79+
6780
[Get started with Kinesis on LocalStack]: https://docs.localstack.cloud/user-guide/aws/kinesis/

0 commit comments

Comments
 (0)