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) {
try {
const instances = await lightsail.getInstances({}).promise();
console.log(instances)
console.log(`Instances in ${region}:`, instances); // Log full response for debugging
return instances.instances;
} 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 [];
}
}
async function main() {
try {
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