Decode kinesis data
parent
2925208978
commit
d09d24b45a
File diff suppressed because one or more lines are too long
|
|
@ -4,7 +4,6 @@ import * as SDK from 'aws-sdk';
|
||||||
import { nanoid } from 'nanoid';
|
import { nanoid } from 'nanoid';
|
||||||
|
|
||||||
const fs = require('fs');
|
const fs = require('fs');
|
||||||
const zlib = require('zlib');
|
|
||||||
const core = require('@actions/core');
|
const core = require('@actions/core');
|
||||||
|
|
||||||
class AWS {
|
class AWS {
|
||||||
|
|
@ -144,7 +143,7 @@ class AWS {
|
||||||
iterator = records.NextShardIterator;
|
iterator = records.NextShardIterator;
|
||||||
if (records.Records.length > 0) {
|
if (records.Records.length > 0) {
|
||||||
for (let index = 0; index < records.Records.length; index++) {
|
for (let index = 0; index < records.Records.length; index++) {
|
||||||
core.info(records.Records[index].Data.toString('utf8'));
|
core.info(Buffer.from(records.Records[index].Data, 'base64').toString());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
await new Promise((resolve) => setTimeout(resolve, 3000));
|
await new Promise((resolve) => setTimeout(resolve, 3000));
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue