Decode kinesis data
parent
4be30c2c11
commit
61d644c032
File diff suppressed because one or more lines are too long
|
|
@ -144,13 +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.toString();
|
||||
core.info(Buffer.from(record).toString('utf8'));
|
||||
core.info(Buffer.from(record, 'utf8').toString('utf8'));
|
||||
core.info(Buffer.from(record, 'base64').toString('utf8'));
|
||||
core.info(
|
||||
Buffer.from(Buffer.from(record, 'base64').toString('utf8'), 'base64').toString('utf8'),
|
||||
);
|
||||
const record = records.Records[index].Data;
|
||||
core.info(Buffer.from(record, 'base64').toString('ascii'));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue