Process every record from kinesis as b64 buffer

pull/218/head
Frostebite 2021-02-07 17:26:27 +00:00
parent c92ccb0f1c
commit 6e4a7fa680
2 changed files with 4 additions and 2 deletions

File diff suppressed because one or more lines are too long

View File

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