From 0001ba434b8d71fc7b5c644f8b27ecb951f34b00 Mon Sep 17 00:00:00 2001 From: theburningmonk Date: Sat, 28 Mar 2020 02:06:02 +0100 Subject: [PATCH] style: added whitespaces --- src/lib/apigw.js | 3 +++ src/lib/cloudformation.js | 1 + src/lib/cloudwatch-logs.js | 1 + src/lib/iam.js | 1 + src/lib/s3.js | 1 + 5 files changed, 7 insertions(+) diff --git a/src/lib/apigw.js b/src/lib/apigw.js index 996c9ca..6f4f46d 100644 --- a/src/lib/apigw.js +++ b/src/lib/apigw.js @@ -20,6 +20,7 @@ const regions = [ "ap-south-1", "sa-east-1" ]; + const getAllApiGwInRegion = async (region, AWS) => { const HttpApiGw = new AWS.ApiGatewayV2({ region }); @@ -62,6 +63,7 @@ const getAllApiGwInRegion = async (region, AWS) => { return foundApiGw; }; + const getAllApiGwCount = async AWS => { const allApiPromises = regions.map(region => getAllApiGwInRegion(region, AWS)); const allApis = await Promise.all(allApiPromises); @@ -112,6 +114,7 @@ const deleteAllApiGw = async AWS => { return await Promise.all(apiToDeletePromises); }; + module.exports = { deleteApiGw, deleteAllApiGw, diff --git a/src/lib/cloudformation.js b/src/lib/cloudformation.js index 00217db..f901316 100644 --- a/src/lib/cloudformation.js +++ b/src/lib/cloudformation.js @@ -146,6 +146,7 @@ const getAllStacksCount = async AWS => { return _.flatten(allStacks).length; }; + module.exports = { getAllStacksInRegion, deleteAllStacks, diff --git a/src/lib/cloudwatch-logs.js b/src/lib/cloudwatch-logs.js index 384dc2e..dbb2d2c 100644 --- a/src/lib/cloudwatch-logs.js +++ b/src/lib/cloudwatch-logs.js @@ -103,6 +103,7 @@ const getAllLogGroupsCount = async AWS => { return _.flatten(allLogGroups).length; }; + module.exports = { getAllLogGroupsInRegion, deleteAllLogGroups, diff --git a/src/lib/iam.js b/src/lib/iam.js index 1175a65..9287433 100644 --- a/src/lib/iam.js +++ b/src/lib/iam.js @@ -89,6 +89,7 @@ const deleteAllRoles = async AWS => { return await Promise.all(apiToDeletePromises); }; + module.exports = { deleteAllRoles, getAllRoles, diff --git a/src/lib/s3.js b/src/lib/s3.js index c85b804..a3f64a1 100644 --- a/src/lib/s3.js +++ b/src/lib/s3.js @@ -54,6 +54,7 @@ const getBucketCount = async AWS => { const response = await S3.listBuckets().promise(); return response.Buckets.length; }; + module.exports = { deleteAllBuckets, getBucketCount