Decode kinesis data

pull/218/head
Frostebite 2021-02-07 18:16:10 +00:00
parent a55fdd2268
commit 5a8bd13b3b
2 changed files with 4 additions and 2 deletions

File diff suppressed because one or more lines are too long

View File

@ -144,7 +144,9 @@ class AWS {
iterator = records.NextShardIterator;
if (records.Records.length > 0) {
for (let index = 0; index < records.Records.length; index++) {
const record = records.Records[index].Data.t();
const record = records.Records[index].Data.toString();
core.info(Buffer.from(record).toString('utf8'));
core.info(Buffer.from(record, 'utf8').toString('utf8'));
core.info(Buffer.from(record, 'base64').toString('utf8'));
}
}