# `kinesis_to_kafka` lambda

The `kinesis_to_kafka` lambda translates Maxwell's Deamon kinesis events to Switchboard Kafka messages.

## Quickstart

### Install [Poetry](https://python-poetry.org/docs/)/Dependencies
```shell
pip install poetry
make pip_dev
```

### Permissions

Use [`awsume`](https://awsu.me/) to configure your AWS permissions for the production environment. You can find more
information about this on Notion [here](https://www.notion.so/AWS-Access-f841b9dd815d4443a80e96a86c92cd2f#5618a9119254428e9baeada414767e85).

```shell
awsume prod
```

### Local Development (Docker)

```shell
docker compose up --build &
docker compose restart function

### Linting

Linting uses [Ruff](https://docs.astral.sh/ruff/), and its configuration is defined in `pyproject.toml`.

```shell
make lint
```

### Formatting

Formatting also uses Ruff.

```shell
make fmt
```
