@storm-software/terraform-tools 0.54.21 → 0.54.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +12 -0
- package/README.md +1 -1
- package/dist/{chunk-OJ33RFH7.js → chunk-3ZAFBUDR.js} +2 -2
- package/dist/{chunk-MMBQ5BEW.js → chunk-5YGWQRMQ.js} +2 -2
- package/dist/{chunk-ZYPB3WAC.js → chunk-753IKN36.js} +3 -3
- package/dist/{chunk-KWXOSOKO.mjs → chunk-D6GXLL2Y.mjs} +9 -12
- package/dist/{chunk-BYGHUFW4.mjs → chunk-G5PYGJD3.mjs} +1 -1
- package/dist/{chunk-MBXPILHI.mjs → chunk-HCUDHOA5.mjs} +1 -1
- package/dist/{chunk-2LUGBITC.js → chunk-JTWWCHOY.js} +2 -2
- package/dist/{chunk-GCCFZEDU.js → chunk-KWC4B2IB.js} +9 -12
- package/dist/{chunk-25PTDMW6.js → chunk-L7KGL5QM.js} +151 -151
- package/dist/{chunk-AP4J2N34.js → chunk-ME4WDJGK.js} +2 -2
- package/dist/{chunk-UQJF73ZV.mjs → chunk-MRL343WW.mjs} +1 -1
- package/dist/{chunk-GDIPTQU2.mjs → chunk-OI65N3CE.mjs} +1 -1
- package/dist/{chunk-VWRPSPA5.mjs → chunk-RDVYV2VH.mjs} +1 -1
- package/dist/{chunk-2ZZJNUXX.mjs → chunk-RPCBCF6T.mjs} +1 -1
- package/dist/executors.js +6 -6
- package/dist/executors.mjs +6 -6
- package/dist/generators.js +3 -3
- package/dist/generators.mjs +2 -2
- package/dist/index.js +8 -8
- package/dist/index.mjs +7 -7
- package/dist/src/base/index.js +3 -3
- package/dist/src/base/index.mjs +2 -2
- package/dist/src/base/terraform-executor.js +3 -3
- package/dist/src/base/terraform-executor.mjs +2 -2
- package/dist/src/executors/apply/executor.js +4 -4
- package/dist/src/executors/apply/executor.mjs +3 -3
- package/dist/src/executors/destroy/executor.js +4 -4
- package/dist/src/executors/destroy/executor.mjs +3 -3
- package/dist/src/executors/output/executor.js +4 -4
- package/dist/src/executors/output/executor.mjs +3 -3
- package/dist/src/executors/plan/executor.js +4 -4
- package/dist/src/executors/plan/executor.mjs +3 -3
- package/dist/src/generators/init/init.js +3 -3
- package/dist/src/generators/init/init.mjs +2 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,15 @@
|
|
|
1
|
+
## 0.54.23 (2025-02-02)
|
|
2
|
+
|
|
3
|
+
### Miscellaneous
|
|
4
|
+
|
|
5
|
+
- **monorepo:** Regenerate README markdown files ([81d0b65c2](https://github.com/storm-software/storm-ops/commit/81d0b65c2))
|
|
6
|
+
|
|
7
|
+
## 0.54.22 (2025-02-02)
|
|
8
|
+
|
|
9
|
+
### Miscellaneous
|
|
10
|
+
|
|
11
|
+
- **monorepo:** Regenerate README markdown files ([a2b221881](https://github.com/storm-software/storm-ops/commit/a2b221881))
|
|
12
|
+
|
|
1
13
|
## 0.54.21 (2025-02-02)
|
|
2
14
|
|
|
3
15
|
### Miscellaneous
|
package/README.md
CHANGED
|
@@ -21,7 +21,7 @@ This package is part of the <b>⚡Storm-Ops</b> monorepo. The Storm-Ops packages
|
|
|
21
21
|
|
|
22
22
|
<h3 align="center">💻 Visit <a href="https://stormsoftware.com" target="_blank">stormsoftware.com</a> to stay up to date with this developer</h3><br />
|
|
23
23
|
|
|
24
|
-
[](https://prettier.io/) [](http://nx.dev/) [](https://nextjs.org/) [](http://commitizen.github.io/cz-cli/)  [](https://fumadocs.vercel.app/) 
|
|
25
25
|
|
|
26
26
|
<!-- prettier-ignore-start -->
|
|
27
27
|
<!-- markdownlint-disable -->
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunk753IKN36js = require('./chunk-753IKN36.js');
|
|
4
4
|
|
|
5
5
|
// src/executors/output/executor.ts
|
|
6
|
-
var executor_default =
|
|
6
|
+
var executor_default = _chunk753IKN36js.withTerraformExecutor.call(void 0, "output");
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunk753IKN36js = require('./chunk-753IKN36.js');
|
|
4
4
|
|
|
5
5
|
// src/executors/destroy/executor.ts
|
|
6
|
-
var executor_default =
|
|
6
|
+
var executor_default = _chunk753IKN36js.withTerraformExecutor.call(void 0, "destroy");
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkKWC4B2IBjs = require('./chunk-KWC4B2IB.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
var _chunk3GQAWCBQjs = require('./chunk-3GQAWCBQ.js');
|
|
@@ -9,7 +9,7 @@ var _chunk3GQAWCBQjs = require('./chunk-3GQAWCBQ.js');
|
|
|
9
9
|
// src/base/terraform-executor.ts
|
|
10
10
|
var _shelljs = require('shelljs');
|
|
11
11
|
var withTerraformExecutor = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (command, executorOptions = {}) => async (_options, context) => {
|
|
12
|
-
return
|
|
12
|
+
return _chunkKWC4B2IBjs.withRunExecutor.call(void 0, `Terraform \`${command}\` Command Executor`, async (options, context2, config) => {
|
|
13
13
|
if (!_shelljs.which.call(void 0, "tofu") || !_shelljs.which.call(void 0, "terraform")) {
|
|
14
14
|
throw new Error("Both OpenTofu and Terraform are not installed. Please install one of the two before running this executor.");
|
|
15
15
|
}
|
|
@@ -21,7 +21,7 @@ var withTerraformExecutor = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0,
|
|
|
21
21
|
if (typeof jsonBackendConfig === "string") {
|
|
22
22
|
jsonBackendConfig = JSON.parse(jsonBackendConfig);
|
|
23
23
|
}
|
|
24
|
-
|
|
24
|
+
_chunkKWC4B2IBjs.run.call(void 0, config, [
|
|
25
25
|
"terragrunt",
|
|
26
26
|
command,
|
|
27
27
|
...jsonBackendConfig.map((config2) => `-backend-config="${config2.key}=${config2.name}"`),
|
|
@@ -636,55 +636,55 @@ var getLogFn = /* @__PURE__ */ __name((logLevel = LogLevel.INFO, config = {}, _c
|
|
|
636
636
|
if (typeof logLevel === "number" && LogLevel.FATAL >= logLevel) {
|
|
637
637
|
return (message) => {
|
|
638
638
|
console.error(`
|
|
639
|
-
${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.fatal ?? "#7d1a1a")(`[${CONSOLE_ICONS[LogLevelLabel.FATAL]} Fatal]`)}
|
|
639
|
+
${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.fatal ?? "#7d1a1a")(`[${CONSOLE_ICONS[LogLevelLabel.FATAL]} Fatal] `)}${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
640
640
|
`);
|
|
641
641
|
};
|
|
642
642
|
}
|
|
643
643
|
if (typeof logLevel === "number" && LogLevel.ERROR >= logLevel) {
|
|
644
644
|
return (message) => {
|
|
645
645
|
console.error(`
|
|
646
|
-
${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.danger ?? "#f85149")(`[${CONSOLE_ICONS[LogLevelLabel.ERROR]} Error]`)}
|
|
646
|
+
${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.danger ?? "#f85149")(`[${CONSOLE_ICONS[LogLevelLabel.ERROR]} Error] `)}${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
647
647
|
`);
|
|
648
648
|
};
|
|
649
649
|
}
|
|
650
650
|
if (typeof logLevel === "number" && LogLevel.WARN >= logLevel) {
|
|
651
651
|
return (message) => {
|
|
652
652
|
console.warn(`
|
|
653
|
-
${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.warning ?? "#e3b341")(`[${CONSOLE_ICONS[LogLevelLabel.WARN]} Warn]`)}
|
|
653
|
+
${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.warning ?? "#e3b341")(`[${CONSOLE_ICONS[LogLevelLabel.WARN]} Warn] `)}${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
654
654
|
`);
|
|
655
655
|
};
|
|
656
656
|
}
|
|
657
657
|
if (typeof logLevel === "number" && LogLevel.SUCCESS >= logLevel) {
|
|
658
658
|
return (message) => {
|
|
659
659
|
console.info(`
|
|
660
|
-
${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.success ?? "#56d364")(`[${CONSOLE_ICONS[LogLevelLabel.SUCCESS]} Success]`)}
|
|
660
|
+
${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.success ?? "#56d364")(`[${CONSOLE_ICONS[LogLevelLabel.SUCCESS]} Success] `)}${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
661
661
|
`);
|
|
662
662
|
};
|
|
663
663
|
}
|
|
664
664
|
if (typeof logLevel === "number" && LogLevel.INFO >= logLevel) {
|
|
665
665
|
return (message) => {
|
|
666
666
|
console.info(`
|
|
667
|
-
${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.info ?? "#58a6ff")(`[${CONSOLE_ICONS[LogLevelLabel.INFO]} Info]`)}
|
|
667
|
+
${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.info ?? "#58a6ff")(`[${CONSOLE_ICONS[LogLevelLabel.INFO]} Info] `)}${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
668
668
|
`);
|
|
669
669
|
};
|
|
670
670
|
}
|
|
671
671
|
if (typeof logLevel === "number" && LogLevel.DEBUG >= logLevel) {
|
|
672
672
|
return (message) => {
|
|
673
673
|
console.debug(`
|
|
674
|
-
${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.brand ?? "#1fb2a6")(`[${CONSOLE_ICONS[LogLevelLabel.DEBUG]} Debug]`)}
|
|
674
|
+
${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.brand ?? "#1fb2a6")(`[${CONSOLE_ICONS[LogLevelLabel.DEBUG]} Debug] `)}${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
675
675
|
`);
|
|
676
676
|
};
|
|
677
677
|
}
|
|
678
678
|
if (typeof logLevel === "number" && LogLevel.TRACE >= logLevel) {
|
|
679
679
|
return (message) => {
|
|
680
680
|
console.debug(`
|
|
681
|
-
${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.brand ?? "#1fb2a6")(`[${CONSOLE_ICONS[LogLevelLabel.TRACE]} Trace]`)}
|
|
681
|
+
${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.brand ?? "#1fb2a6")(`[${CONSOLE_ICONS[LogLevelLabel.TRACE]} Trace] `)}${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
682
682
|
`);
|
|
683
683
|
};
|
|
684
684
|
}
|
|
685
685
|
return (message) => {
|
|
686
686
|
console.log(`
|
|
687
|
-
${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.brand ?? "#1fb2a6")(`[${CONSOLE_ICONS[LogLevelLabel.ALL]} System]`)}
|
|
687
|
+
${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.brand ?? "#1fb2a6")(`[${CONSOLE_ICONS[LogLevelLabel.ALL]} System] `)}${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
688
688
|
`);
|
|
689
689
|
};
|
|
690
690
|
}, "getLogFn");
|
|
@@ -701,7 +701,6 @@ var getStopwatch = /* @__PURE__ */ __name((name) => {
|
|
|
701
701
|
const end = process.hrtime(start);
|
|
702
702
|
console.info(`
|
|
703
703
|
> \u23F1\uFE0F The${name ? ` ${name}` : ""} process took ${Math.round(end[0] * 1e3 + end[1] / 1e6)}ms to complete
|
|
704
|
-
|
|
705
704
|
`);
|
|
706
705
|
};
|
|
707
706
|
}, "getStopwatch");
|
|
@@ -1328,9 +1327,7 @@ var withRunExecutor = /* @__PURE__ */ __name((name, executorFn, executorOptions
|
|
|
1328
1327
|
const sourceRoot = context.projectsConfigurations.projects[context.projectName].sourceRoot || projectRoot || workspaceRoot;
|
|
1329
1328
|
const projectName = context.projectName;
|
|
1330
1329
|
config.workspaceRoot = workspaceRoot;
|
|
1331
|
-
writeInfo(
|
|
1332
|
-
\u26A1 Running the ${name} executor for ${projectName}
|
|
1333
|
-
`, config);
|
|
1330
|
+
writeInfo(`\u26A1 Running the ${name} executor for ${projectName} `, config);
|
|
1334
1331
|
if (!executorOptions.skipReadingConfig) {
|
|
1335
1332
|
writeTrace(`Loading the Storm Config from environment variables and storm.config.js file...
|
|
1336
1333
|
- workspaceRoot: ${workspaceRoot}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunk753IKN36js = require('./chunk-753IKN36.js');
|
|
4
4
|
|
|
5
5
|
// src/executors/apply/executor.ts
|
|
6
|
-
var executor_default =
|
|
6
|
+
var executor_default = _chunk753IKN36js.withTerraformExecutor.call(void 0, "apply");
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
@@ -636,55 +636,55 @@ var getLogFn = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (logLevel =
|
|
|
636
636
|
if (typeof logLevel === "number" && LogLevel.FATAL >= logLevel) {
|
|
637
637
|
return (message) => {
|
|
638
638
|
console.error(`
|
|
639
|
-
${_chalk.gray(formatTimestamp())} ${_chalk.hex(_nullishCoalesce(colors.fatal, () => ( "#7d1a1a")))(`[${CONSOLE_ICONS[LogLevelLabel.FATAL]} Fatal]`)}
|
|
639
|
+
${_chalk.gray(formatTimestamp())} ${_chalk.hex(_nullishCoalesce(colors.fatal, () => ( "#7d1a1a")))(`[${CONSOLE_ICONS[LogLevelLabel.FATAL]} Fatal] `)}${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
640
640
|
`);
|
|
641
641
|
};
|
|
642
642
|
}
|
|
643
643
|
if (typeof logLevel === "number" && LogLevel.ERROR >= logLevel) {
|
|
644
644
|
return (message) => {
|
|
645
645
|
console.error(`
|
|
646
|
-
${_chalk.gray(formatTimestamp())} ${_chalk.hex(_nullishCoalesce(colors.danger, () => ( "#f85149")))(`[${CONSOLE_ICONS[LogLevelLabel.ERROR]} Error]`)}
|
|
646
|
+
${_chalk.gray(formatTimestamp())} ${_chalk.hex(_nullishCoalesce(colors.danger, () => ( "#f85149")))(`[${CONSOLE_ICONS[LogLevelLabel.ERROR]} Error] `)}${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
647
647
|
`);
|
|
648
648
|
};
|
|
649
649
|
}
|
|
650
650
|
if (typeof logLevel === "number" && LogLevel.WARN >= logLevel) {
|
|
651
651
|
return (message) => {
|
|
652
652
|
console.warn(`
|
|
653
|
-
${_chalk.gray(formatTimestamp())} ${_chalk.hex(_nullishCoalesce(colors.warning, () => ( "#e3b341")))(`[${CONSOLE_ICONS[LogLevelLabel.WARN]} Warn]`)}
|
|
653
|
+
${_chalk.gray(formatTimestamp())} ${_chalk.hex(_nullishCoalesce(colors.warning, () => ( "#e3b341")))(`[${CONSOLE_ICONS[LogLevelLabel.WARN]} Warn] `)}${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
654
654
|
`);
|
|
655
655
|
};
|
|
656
656
|
}
|
|
657
657
|
if (typeof logLevel === "number" && LogLevel.SUCCESS >= logLevel) {
|
|
658
658
|
return (message) => {
|
|
659
659
|
console.info(`
|
|
660
|
-
${_chalk.gray(formatTimestamp())} ${_chalk.hex(_nullishCoalesce(colors.success, () => ( "#56d364")))(`[${CONSOLE_ICONS[LogLevelLabel.SUCCESS]} Success]`)}
|
|
660
|
+
${_chalk.gray(formatTimestamp())} ${_chalk.hex(_nullishCoalesce(colors.success, () => ( "#56d364")))(`[${CONSOLE_ICONS[LogLevelLabel.SUCCESS]} Success] `)}${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
661
661
|
`);
|
|
662
662
|
};
|
|
663
663
|
}
|
|
664
664
|
if (typeof logLevel === "number" && LogLevel.INFO >= logLevel) {
|
|
665
665
|
return (message) => {
|
|
666
666
|
console.info(`
|
|
667
|
-
${_chalk.gray(formatTimestamp())} ${_chalk.hex(_nullishCoalesce(colors.info, () => ( "#58a6ff")))(`[${CONSOLE_ICONS[LogLevelLabel.INFO]} Info]`)}
|
|
667
|
+
${_chalk.gray(formatTimestamp())} ${_chalk.hex(_nullishCoalesce(colors.info, () => ( "#58a6ff")))(`[${CONSOLE_ICONS[LogLevelLabel.INFO]} Info] `)}${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
668
668
|
`);
|
|
669
669
|
};
|
|
670
670
|
}
|
|
671
671
|
if (typeof logLevel === "number" && LogLevel.DEBUG >= logLevel) {
|
|
672
672
|
return (message) => {
|
|
673
673
|
console.debug(`
|
|
674
|
-
${_chalk.gray(formatTimestamp())} ${_chalk.hex(_nullishCoalesce(colors.brand, () => ( "#1fb2a6")))(`[${CONSOLE_ICONS[LogLevelLabel.DEBUG]} Debug]`)}
|
|
674
|
+
${_chalk.gray(formatTimestamp())} ${_chalk.hex(_nullishCoalesce(colors.brand, () => ( "#1fb2a6")))(`[${CONSOLE_ICONS[LogLevelLabel.DEBUG]} Debug] `)}${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
675
675
|
`);
|
|
676
676
|
};
|
|
677
677
|
}
|
|
678
678
|
if (typeof logLevel === "number" && LogLevel.TRACE >= logLevel) {
|
|
679
679
|
return (message) => {
|
|
680
680
|
console.debug(`
|
|
681
|
-
${_chalk.gray(formatTimestamp())} ${_chalk.hex(_nullishCoalesce(colors.brand, () => ( "#1fb2a6")))(`[${CONSOLE_ICONS[LogLevelLabel.TRACE]} Trace]`)}
|
|
681
|
+
${_chalk.gray(formatTimestamp())} ${_chalk.hex(_nullishCoalesce(colors.brand, () => ( "#1fb2a6")))(`[${CONSOLE_ICONS[LogLevelLabel.TRACE]} Trace] `)}${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
682
682
|
`);
|
|
683
683
|
};
|
|
684
684
|
}
|
|
685
685
|
return (message) => {
|
|
686
686
|
console.log(`
|
|
687
|
-
${_chalk.gray(formatTimestamp())} ${_chalk.hex(_nullishCoalesce(colors.brand, () => ( "#1fb2a6")))(`[${CONSOLE_ICONS[LogLevelLabel.ALL]} System]`)}
|
|
687
|
+
${_chalk.gray(formatTimestamp())} ${_chalk.hex(_nullishCoalesce(colors.brand, () => ( "#1fb2a6")))(`[${CONSOLE_ICONS[LogLevelLabel.ALL]} System] `)}${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
688
688
|
`);
|
|
689
689
|
};
|
|
690
690
|
}, "getLogFn");
|
|
@@ -701,7 +701,6 @@ var getStopwatch = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (name) =
|
|
|
701
701
|
const end = process.hrtime(start);
|
|
702
702
|
console.info(`
|
|
703
703
|
> \u23F1\uFE0F The${name ? ` ${name}` : ""} process took ${Math.round(end[0] * 1e3 + end[1] / 1e6)}ms to complete
|
|
704
|
-
|
|
705
704
|
`);
|
|
706
705
|
};
|
|
707
706
|
}, "getStopwatch");
|
|
@@ -1328,9 +1327,7 @@ var withRunExecutor = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (name
|
|
|
1328
1327
|
const sourceRoot = context.projectsConfigurations.projects[context.projectName].sourceRoot || projectRoot || workspaceRoot;
|
|
1329
1328
|
const projectName = context.projectName;
|
|
1330
1329
|
config.workspaceRoot = workspaceRoot;
|
|
1331
|
-
writeInfo(
|
|
1332
|
-
\u26A1 Running the ${name} executor for ${projectName}
|
|
1333
|
-
`, config);
|
|
1330
|
+
writeInfo(`\u26A1 Running the ${name} executor for ${projectName} `, config);
|
|
1334
1331
|
if (!executorOptions.skipReadingConfig) {
|
|
1335
1332
|
writeTrace(`Loading the Storm Config from environment variables and storm.config.js file...
|
|
1336
1333
|
- workspaceRoot: ${workspaceRoot}
|