Skip to content

Deenbe/cpipe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

3314d61 · Jun 1, 2023

History

19 Commits
Jun 25, 2020
Jun 25, 2020
Sep 21, 2020
Sep 21, 2020
Sep 21, 2020
Sep 21, 2020
Jun 24, 2020
Sep 21, 2020
Jun 22, 2020
Jun 22, 2020
Jun 22, 2020
Jun 26, 2020
Jun 22, 2020
Jun 1, 2023
Jun 1, 2023
Jun 25, 2020
Jun 24, 2020

Repository files navigation

cpipe

Pipe data streams to AWS services

Build and Release

Install cpipe

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Deenbe/cpipe/master/install.sh)"

Usage

Save a single item to dynamodb.

echo '{"id": 1, "first_name": "barry", "last_name": "allen"}' | cpipe dynamodb --table dc_crowd

Similarly you could pipe the output of a program that generates a series of items to cpipe to store them in dynamodb.

// gen.js
#!/usr/bin/env node

for (let i = 0; i < 100; i++) {
    console.log(JSON.stringify({
        id: `${i}`,
        value: Math.random() * 10
    }));
}
./gen.js | cpipe dynamodb --table sensor_data