Kinesis buffer to string
parent
b5a399ba08
commit
38525bbc33
File diff suppressed because one or more lines are too long
|
|
@ -131,7 +131,7 @@ class AWS {
|
||||||
})
|
})
|
||||||
.promise()
|
.promise()
|
||||||
).ShardIterator;
|
).ShardIterator;
|
||||||
|
|
||||||
while ((await getTaskStatus()) === 'RUNNING') {
|
while ((await getTaskStatus()) === 'RUNNING') {
|
||||||
const records = await kinesis
|
const records = await kinesis
|
||||||
.getRecords({
|
.getRecords({
|
||||||
|
|
@ -140,7 +140,7 @@ class AWS {
|
||||||
.promise();
|
.promise();
|
||||||
iterator = records.NextShardIterator;
|
iterator = records.NextShardIterator;
|
||||||
if (records.Records.length > 0){
|
if (records.Records.length > 0){
|
||||||
core.info(Buffer.from(records.Records[0].Data, 'base64').toString('utf-8'));
|
core.info(Buffer.from(records.Records[0].Data.toString(), 'base64').toString('utf-8'));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue