Decode kinesis data
parent
61d644c032
commit
5b3ccf0f5f
File diff suppressed because one or more lines are too long
|
|
@ -144,7 +144,8 @@ 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++) {
|
||||||
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'));
|
core.info(Buffer.from(record, 'base64').toString('ascii'));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue