Skip to content

Commit 1505cf8

Browse files
author
Paul Ashton
committed
Merge remote-tracking branch 'origin/main'
2 parents e1be8ba + 31c2e30 commit 1505cf8

1 file changed

Lines changed: 5 additions & 6 deletions

File tree

dist/index.js

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -160452,17 +160452,16 @@ async function terminateEc2Instance() {
160452160452

160453160453
async function waitForInstanceRunning(ec2InstanceId) {
160454160454
const ec2 = new EC2Client();
160455-
const params = {
160456-
InstanceIds: ec2InstanceId,
160457-
client: ec2
160458-
};
160459160455

160460160456
try {
160461-
await waitUntilInstanceRunning(params);
160457+
await waitUntilInstanceRunning({
160458+
client: ec2,
160459+
maxWaitTime: 120
160460+
}, {InstanceIds: ec2InstanceId});
160462160461
core.info(`AWS EC2 instance(s) ${ec2InstanceId} is up and running`);
160463160462
return ec2InstanceId;
160464160463
} catch (error) {
160465-
core.error(`AWS EC2 instance(s) ${ec2InstanceId} initialization error`);
160464+
core.error(`AWS EC2 instance(s) ${ec2InstanceId} initialization error: ${error}`);
160466160465
throw error;
160467160466
}
160468160467
}

0 commit comments

Comments
 (0)