File tree Expand file tree Collapse file tree 1 file changed +15
-11
lines changed Expand file tree Collapse file tree 1 file changed +15
-11
lines changed Original file line number Diff line number Diff line change @@ -160391,17 +160391,21 @@ async function getImageId(imageNameMatch) {
160391160391async function sendstart(command) {
160392160392 const ec2 = new EC2Client({region: process.env.AWS_REGION});
160393160393
160394- ec2.send(command, (err, data) => {
160395- if (err) {
160396- console.log(err, err.stack);
160397- core.error(`Error: ${err}`)
160398- throw err;
160399- } else {
160400- const ec2InstanceIds = data.Instances.map(x => x.InstanceId); //[0].InstanceId; pass all instances instead of just first id
160401- core.info(`AWS EC2 instance(s) ${ec2InstanceIds} is started`);
160402- return ec2InstanceIds;
160403- }
160404- });
160394+ console.log("sendstart")
160395+ const response = await ec2.send(command); //, (err, data) => {
160396+ console.log("response")
160397+ console.log(response)
160398+ console.log("endresponse")
160399+ // if (err) {
160400+ // console.log(err, err.stack);
160401+ // core.error(`Error: ${err}`)
160402+ // throw err;
160403+ // } else {
160404+ // const ec2InstanceIds = data.Instances.map(x => x.InstanceId); //[0].InstanceId; pass all instances instead of just first id
160405+ // core.info(`AWS EC2 instance(s) ${ec2InstanceIds} is started`);
160406+ // return ec2InstanceIds;
160407+ // }
160408+ // });
160405160409}
160406160410
160407160411async function startEc2Instance(label, githubRegistrationToken) {
You can’t perform that action at this time.
0 commit comments