Decode kinesis data

pull/218/head
Frostebite 2021-02-07 18:34:17 +00:00
parent 61d644c032
commit 5b3ccf0f5f
2 changed files with 3 additions and 2 deletions

File diff suppressed because one or more lines are too long

View File

@ -144,7 +144,8 @@ 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;
const record = records.Records[index].Data.toString();
core.info(records.Records[index]);
core.info(Buffer.from(record, 'base64').toString('ascii'));
}
}