aws-garbage-collect do not actually delete anything for now - just list

pull/353/head
Frostebite 2022-04-09 14:42:09 +01:00
parent 3648e43fc5
commit 09c06d936d
3 changed files with 1 additions and 4 deletions

2
dist/index.js vendored
View File

@ -1228,8 +1228,6 @@ class AWSCLICommands {
const stacks = ((_a = (yield CF.listStacks().promise()).StackSummaries) === null || _a === void 0 ? void 0 : _a.filter((_x) => _x.StackStatus !== 'DELETE_COMPLETE')) || []; const stacks = ((_a = (yield CF.listStacks().promise()).StackSummaries) === null || _a === void 0 ? void 0 : _a.filter((_x) => _x.StackStatus !== 'DELETE_COMPLETE')) || [];
for (const element of stacks) { for (const element of stacks) {
cloud_runner_logger_1.default.log(JSON.stringify(element, undefined, 4)); cloud_runner_logger_1.default.log(JSON.stringify(element, undefined, 4));
if (input_1.default.cloudRunnerTests)
yield CF.deleteStack({ StackName: element.StackName }).promise();
} }
cloud_runner_logger_1.default.log(`ECS Clusters`); cloud_runner_logger_1.default.log(`ECS Clusters`);
const ecs = new aws_sdk_1.default.ECS(); const ecs = new aws_sdk_1.default.ECS();

2
dist/index.js.map vendored

File diff suppressed because one or more lines are too long

View File

@ -13,7 +13,6 @@ export class AWSCLICommands {
(await CF.listStacks().promise()).StackSummaries?.filter((_x) => _x.StackStatus !== 'DELETE_COMPLETE') || []; (await CF.listStacks().promise()).StackSummaries?.filter((_x) => _x.StackStatus !== 'DELETE_COMPLETE') || [];
for (const element of stacks) { for (const element of stacks) {
CloudRunnerLogger.log(JSON.stringify(element, undefined, 4)); CloudRunnerLogger.log(JSON.stringify(element, undefined, 4));
if (Input.cloudRunnerTests) await CF.deleteStack({ StackName: element.StackName }).promise();
} }
CloudRunnerLogger.log(`ECS Clusters`); CloudRunnerLogger.log(`ECS Clusters`);
const ecs = new AWS.ECS(); const ecs = new AWS.ECS();