Decode kinesis data

pull/218/head
Frostebite 2021-02-07 18:10:30 +00:00
parent 949f93fb56
commit 9c2635993d
2 changed files with 6 additions and 2 deletions

File diff suppressed because one or more lines are too long

View File

@ -94,11 +94,14 @@ class AWS {
}, },
}, },
}).promise(); }).promise();
core.info('Build job is starting'); core.info('Build job is starting');
await ECS.waitFor('tasksRunning', { await ECS.waitFor('tasksRunning', {
cluster: clusterName, cluster: clusterName,
tasks: [task.tasks[0].taskArn], tasks: [task.tasks[0].taskArn],
}).promise(); }).promise();
core.info(`Build job is running`); core.info(`Build job is running`);
// watching logs // watching logs
@ -142,7 +145,8 @@ 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 element = records.Records[index].Data; const element = records.Records[index].Data;
core.info(element); core.info(Buffer.from(element).toString('utf8'));
core.info(Buffer.from(element, 'base64').toString('utf8'));
core.info(AWS.ab2str(element)); core.info(AWS.ab2str(element));
} }
} }