Commit b7d3f278 authored by Ahmad's avatar Ahmad

inikt

parent c140a710
Pipeline #214 canceled with stages
...@@ -56,14 +56,13 @@ async function getLightsailInstances(region, credentials) { ...@@ -56,14 +56,13 @@ async function getLightsailInstances(region, credentials) {
try { try {
const instances = await lightsail.getInstances({}).promise(); const instances = await lightsail.getInstances({}).promise();
console.log(instances) console.log(`Instances in ${region}:`, instances); // Log full response for debugging
return instances.instances; return instances.instances;
} catch (err) { } catch (err) {
console.error(`Error fetching instances in region ${region}:`, err.message); console.error(`Error fetching instances in region ${region}:`, err); // Log full error object
return []; return [];
} }
} }
async function main() { async function main() {
try { try {
const credentials = extractAWSCredentials(rootKeyFilePath); const credentials = extractAWSCredentials(rootKeyFilePath);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment