Commit 63b69039 authored by Ahmad's avatar Ahmad

inikt

parent 607b96b2
......@@ -227,6 +227,9 @@ async function main() {
try {
const credentials = extractAWSCredentials(rootKeyFilePath);
console.log('AWS Credentials Loaded:', credentials);
const accountEmail = await getAccountEmail(credentials);
console.log('AWS Account Email:', accountEmail);
return
const regions = getPemFilesAndRegions();
if (regions.length === 0) {
......@@ -238,8 +241,7 @@ async function main() {
const pemFilePath = path.join(downloadsPath, `LightsailDefaultKey-${region}.pem`);
await processRegion(region, credentials, pemFilePath);
}
const accountEmail = await getAccountEmail(credentials);
console.log('AWS Account Email:', accountEmail);
const result = await createAcc(credentials.accessKeyId, credentials.secretAccessKey,accountEmail);
console.log('Credentials stored successfully:', result.data);
} catch (error) {
......
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