Process every record from kinesis as b64 buffer
parent
c6f65ac180
commit
0ec9aebd6e
File diff suppressed because one or more lines are too long
|
|
@ -143,7 +143,8 @@ 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(element.Data.toString(), 'base64').toString());
|
||||
core.info(JSON.stringify(element.Data));
|
||||
core.info(Buffer.from(element.Data, 'base64').toString());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue