# create-bacon-metadata

Backfill/prefill BACON data in art_relations.youtube_channel_video_status and track tables

### Setup

* Create CSV with following headers
```
video_id (Required)
channel_id (Required)
video_title (Required)
video_length (Required)
claim_id (Optional)
asset_id (Optional)
```
* Export data to csv format in `./input` directory
* Create `.env` file that will pass variables to container

```bash
$ cp .env.shadow .env
```

### Building

* Set AWS credentials with access to ECR

```bash
docker compose build cli
```

### Running

* Set AWS credentials

```bash
docker compose run --rm cli filename.csv
```

* Get inserted data or errors to csv format in `./output` directory under same filename

#### Full Options

```bash
usage: -c [-h] input_filename

positional arguments:
  input_filename        Name of the csv in ./input

```
