File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -160452,17 +160452,16 @@ async function terminateEc2Instance() {
160452160452
160453160453async 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}
You can’t perform that action at this time.
0 commit comments