Decode kinesis data

pull/218/head
Frostebite 2021-02-07 18:57:06 +00:00
parent fc537f8a02
commit e7b10ba251
2 changed files with 3 additions and 2 deletions

File diff suppressed because one or more lines are too long

View File

@ -145,9 +145,10 @@ class AWS {
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;
core.info(record.toString('base64')); core.info(Buffer.from(record.toString('base64')).toString('utf8'));
} }
} }
await new Promise((resolve) => setTimeout(resolve, 3000));
} }
await ECS.waitFor('tasksStopped', { await ECS.waitFor('tasksStopped', {