@storm-software/pulumi-tools 0.22.123 → 0.22.124
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/executors.js +1 -1
- package/dist/executors.mjs +1 -1
- package/dist/generators.js +3 -3
- package/dist/generators.mjs +2 -2
- package/dist/index.js +7 -7
- package/dist/index.mjs +7 -7
- package/dist/src/base/index.js +3 -3
- package/dist/src/base/index.mjs +4 -4
- package/dist/src/generators/init/generator.js +3 -3
- package/dist/src/generators/init/generator.mjs +2 -2
- package/package.json +4 -4
- package/dist/chunk-6W6BUGIO.mjs +0 -133
- package/dist/chunk-Q3OADP6T.js +0 -133
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,18 @@
|
|
|
2
2
|
|
|
3
3
|
# Changelog for Storm Ops - Pulumi Tools
|
|
4
4
|
|
|
5
|
+
## [0.22.123](https://github.com/storm-software/storm-ops/releases/tag/pulumi-tools%400.22.123) (03/15/2026)
|
|
6
|
+
|
|
7
|
+
### Miscellaneous
|
|
8
|
+
|
|
9
|
+
- **monorepo:** Update `README.md` files ([60cf96175](https://github.com/storm-software/storm-ops/commit/60cf96175))
|
|
10
|
+
|
|
11
|
+
### Updated Dependencies
|
|
12
|
+
|
|
13
|
+
- Updated **workspace-tools** to **v1.295.8**
|
|
14
|
+
- Updated **config-tools** to **v1.189.32**
|
|
15
|
+
- Updated **config** to **v1.135.33**
|
|
16
|
+
|
|
5
17
|
## [0.22.122](https://github.com/storm-software/storm-ops/releases/tag/pulumi-tools%400.22.122) (03/15/2026)
|
|
6
18
|
|
|
7
19
|
### Miscellaneous
|
package/README.md
CHANGED
|
@@ -27,7 +27,7 @@ This package is part of the <b>⚡Storm-Ops</b> monorepo. The Storm-Ops packages
|
|
|
27
27
|
|
|
28
28
|
<h3 align="center">💻 Visit <a href="https://stormsoftware.com" target="_blank">stormsoftware.com</a> to stay up to date with this developer</h3><br />
|
|
29
29
|
|
|
30
|
-
[](https://prettier.io/) [](http://nx.dev/) [](https://nextjs.org/) [](http://commitizen.github.io/cz-cli/)  [](https://fumadocs.vercel.app/) 
|
|
31
31
|
|
|
32
32
|
<!-- prettier-ignore-start -->
|
|
33
33
|
<!-- markdownlint-disable -->
|
package/dist/executors.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";require('./chunk-XO62WWX4.js');
|
|
2
|
-
require('./chunk-BZCHMDFB.js');
|
|
3
2
|
require('./chunk-MOKMEXOP.js');
|
|
4
3
|
require('./chunk-X35P3F4C.js');
|
|
5
4
|
require('./chunk-WLLZYFYK.js');
|
|
6
5
|
require('./chunk-DYYBJL2Q.js');
|
|
6
|
+
require('./chunk-BZCHMDFB.js');
|
|
7
7
|
require('./chunk-KLWELHFB.js');
|
|
8
8
|
require('./chunk-V5WYZRAM.js');
|
package/dist/executors.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import "./chunk-UV4HQO3Y.mjs";
|
|
2
|
-
import "./chunk-R7YHZPKE.mjs";
|
|
3
2
|
import "./chunk-SHYSN6EA.mjs";
|
|
4
3
|
import "./chunk-4JS5CJGJ.mjs";
|
|
5
4
|
import "./chunk-H2LDJSBE.mjs";
|
|
6
5
|
import "./chunk-ARDSX5DD.mjs";
|
|
6
|
+
import "./chunk-R7YHZPKE.mjs";
|
|
7
7
|
import "./chunk-LMUVY3QW.mjs";
|
|
8
8
|
import "./chunk-B425V6SC.mjs";
|
|
9
9
|
import "./chunk-2JMIC2O2.mjs";
|
package/dist/generators.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});require('./chunk-N2YKXZ5R.js');
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
5
|
-
require('./chunk-V5WYZRAM.js');
|
|
4
|
+
var _chunk6JLXGHQOjs = require('./chunk-6JLXGHQO.js');
|
|
6
5
|
require('./chunk-QDPXTR73.js');
|
|
6
|
+
require('./chunk-V5WYZRAM.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
exports.initGeneratorFn =
|
|
9
|
+
exports.initGeneratorFn = _chunk6JLXGHQOjs.initGeneratorFn;
|
package/dist/generators.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import "./chunk-23KFTIT2.mjs";
|
|
2
2
|
import {
|
|
3
3
|
initGeneratorFn
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import "./chunk-B425V6SC.mjs";
|
|
4
|
+
} from "./chunk-WKDUBPJJ.mjs";
|
|
6
5
|
import "./chunk-5TB4HFDP.mjs";
|
|
6
|
+
import "./chunk-B425V6SC.mjs";
|
|
7
7
|
import "./chunk-2JMIC2O2.mjs";
|
|
8
8
|
export {
|
|
9
9
|
initGeneratorFn
|
package/dist/index.js
CHANGED
|
@@ -8,24 +8,24 @@
|
|
|
8
8
|
|
|
9
9
|
var _chunk7I63VQP3js = require('./chunk-7I63VQP3.js');
|
|
10
10
|
require('./chunk-XO62WWX4.js');
|
|
11
|
-
require('./chunk-BZCHMDFB.js');
|
|
12
11
|
require('./chunk-MOKMEXOP.js');
|
|
13
12
|
require('./chunk-X35P3F4C.js');
|
|
14
13
|
require('./chunk-WLLZYFYK.js');
|
|
15
14
|
require('./chunk-DYYBJL2Q.js');
|
|
16
15
|
require('./chunk-N2YKXZ5R.js');
|
|
17
|
-
require('./chunk-GUQOEBFW.js');
|
|
18
16
|
|
|
19
17
|
|
|
20
|
-
var
|
|
18
|
+
var _chunk6JLXGHQOjs = require('./chunk-6JLXGHQO.js');
|
|
19
|
+
require('./chunk-GUQOEBFW.js');
|
|
21
20
|
|
|
22
21
|
|
|
23
|
-
var _chunkQ3OADP6Tjs = require('./chunk-Q3OADP6T.js');
|
|
24
|
-
require('./chunk-V5WYZRAM.js');
|
|
25
22
|
|
|
23
|
+
var _chunkQDPXTR73js = require('./chunk-QDPXTR73.js');
|
|
24
|
+
require('./chunk-BZCHMDFB.js');
|
|
26
25
|
|
|
27
26
|
|
|
28
|
-
var
|
|
27
|
+
var _chunkKLWELHFBjs = require('./chunk-KLWELHFB.js');
|
|
28
|
+
require('./chunk-V5WYZRAM.js');
|
|
29
29
|
|
|
30
30
|
|
|
31
31
|
|
|
@@ -37,4 +37,4 @@ var _chunkQDPXTR73js = require('./chunk-QDPXTR73.js');
|
|
|
37
37
|
|
|
38
38
|
|
|
39
39
|
|
|
40
|
-
exports.Provider = _chunkQDPXTR73js.Provider; exports.ec2Instance = _chunk7I63VQP3js.ec2Instance; exports.getAWSTemplateName = _chunk7I63VQP3js.getAWSTemplateName; exports.getCloudTemplateName = _chunkQDPXTR73js.getCloudTemplateName; exports.getProviderOpts = _chunk7I63VQP3js.getProviderOpts; exports.initGeneratorFn =
|
|
40
|
+
exports.Provider = _chunkQDPXTR73js.Provider; exports.ec2Instance = _chunk7I63VQP3js.ec2Instance; exports.getAWSTemplateName = _chunk7I63VQP3js.getAWSTemplateName; exports.getCloudTemplateName = _chunkQDPXTR73js.getCloudTemplateName; exports.getProviderOpts = _chunk7I63VQP3js.getProviderOpts; exports.initGeneratorFn = _chunk6JLXGHQOjs.initGeneratorFn; exports.securityGroup = _chunk7I63VQP3js.securityGroup; exports.subnet = _chunk7I63VQP3js.subnet; exports.vpc = _chunk7I63VQP3js.vpc; exports.withPulumiExecutor = _chunkKLWELHFBjs.withPulumiExecutor;
|
package/dist/index.mjs
CHANGED
|
@@ -8,24 +8,24 @@ import {
|
|
|
8
8
|
vpc
|
|
9
9
|
} from "./chunk-S6XCS2TA.mjs";
|
|
10
10
|
import "./chunk-UV4HQO3Y.mjs";
|
|
11
|
-
import "./chunk-R7YHZPKE.mjs";
|
|
12
11
|
import "./chunk-SHYSN6EA.mjs";
|
|
13
12
|
import "./chunk-4JS5CJGJ.mjs";
|
|
14
13
|
import "./chunk-H2LDJSBE.mjs";
|
|
15
14
|
import "./chunk-ARDSX5DD.mjs";
|
|
16
15
|
import "./chunk-23KFTIT2.mjs";
|
|
17
|
-
import "./chunk-CA7S5MOH.mjs";
|
|
18
|
-
import {
|
|
19
|
-
withPulumiExecutor
|
|
20
|
-
} from "./chunk-LMUVY3QW.mjs";
|
|
21
16
|
import {
|
|
22
17
|
initGeneratorFn
|
|
23
|
-
} from "./chunk-
|
|
24
|
-
import "./chunk-
|
|
18
|
+
} from "./chunk-WKDUBPJJ.mjs";
|
|
19
|
+
import "./chunk-CA7S5MOH.mjs";
|
|
25
20
|
import {
|
|
26
21
|
Provider,
|
|
27
22
|
getCloudTemplateName
|
|
28
23
|
} from "./chunk-5TB4HFDP.mjs";
|
|
24
|
+
import "./chunk-R7YHZPKE.mjs";
|
|
25
|
+
import {
|
|
26
|
+
withPulumiExecutor
|
|
27
|
+
} from "./chunk-LMUVY3QW.mjs";
|
|
28
|
+
import "./chunk-B425V6SC.mjs";
|
|
29
29
|
import "./chunk-2JMIC2O2.mjs";
|
|
30
30
|
export {
|
|
31
31
|
Provider,
|
package/dist/src/base/index.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});require('../../chunk-GUQOEBFW.js');
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var _chunkKLWELHFBjs = require('../../chunk-KLWELHFB.js');
|
|
5
|
-
require('../../chunk-V5WYZRAM.js');
|
|
6
4
|
|
|
5
|
+
var _chunkQDPXTR73js = require('../../chunk-QDPXTR73.js');
|
|
7
6
|
|
|
8
7
|
|
|
9
|
-
var
|
|
8
|
+
var _chunkKLWELHFBjs = require('../../chunk-KLWELHFB.js');
|
|
9
|
+
require('../../chunk-V5WYZRAM.js');
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
package/dist/src/base/index.mjs
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import "../../chunk-CA7S5MOH.mjs";
|
|
2
|
-
import {
|
|
3
|
-
withPulumiExecutor
|
|
4
|
-
} from "../../chunk-LMUVY3QW.mjs";
|
|
5
|
-
import "../../chunk-B425V6SC.mjs";
|
|
6
2
|
import {
|
|
7
3
|
Provider,
|
|
8
4
|
getCloudTemplateName
|
|
9
5
|
} from "../../chunk-5TB4HFDP.mjs";
|
|
6
|
+
import {
|
|
7
|
+
withPulumiExecutor
|
|
8
|
+
} from "../../chunk-LMUVY3QW.mjs";
|
|
9
|
+
import "../../chunk-B425V6SC.mjs";
|
|
10
10
|
import "../../chunk-2JMIC2O2.mjs";
|
|
11
11
|
export {
|
|
12
12
|
Provider,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
5
|
-
require('../../../chunk-V5WYZRAM.js');
|
|
4
|
+
var _chunk6JLXGHQOjs = require('../../../chunk-6JLXGHQO.js');
|
|
6
5
|
require('../../../chunk-QDPXTR73.js');
|
|
6
|
+
require('../../../chunk-V5WYZRAM.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
exports.default =
|
|
10
|
+
exports.default = _chunk6JLXGHQOjs.generator_default; exports.initGeneratorFn = _chunk6JLXGHQOjs.initGeneratorFn;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
generator_default,
|
|
3
3
|
initGeneratorFn
|
|
4
|
-
} from "../../../chunk-
|
|
5
|
-
import "../../../chunk-B425V6SC.mjs";
|
|
4
|
+
} from "../../../chunk-WKDUBPJJ.mjs";
|
|
6
5
|
import "../../../chunk-5TB4HFDP.mjs";
|
|
6
|
+
import "../../../chunk-B425V6SC.mjs";
|
|
7
7
|
import "../../../chunk-2JMIC2O2.mjs";
|
|
8
8
|
export {
|
|
9
9
|
generator_default as default,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storm-software/pulumi-tools",
|
|
3
|
-
"version": "0.22.
|
|
3
|
+
"version": "0.22.124",
|
|
4
4
|
"type": "commonjs",
|
|
5
5
|
"description": "Tools for managing Pulumi infrastructure within a Nx workspace.",
|
|
6
6
|
"repository": {
|
|
@@ -156,8 +156,8 @@
|
|
|
156
156
|
"@pulumi/aws": "^6.83.2",
|
|
157
157
|
"@pulumi/awsx": "^2.22.0",
|
|
158
158
|
"@pulumi/pulumi": "^3.226.0",
|
|
159
|
-
"@storm-software/config": "^1.135.
|
|
160
|
-
"@storm-software/config-tools": "^1.189.
|
|
159
|
+
"@storm-software/config": "^1.135.34",
|
|
160
|
+
"@storm-software/config-tools": "^1.189.33",
|
|
161
161
|
"defu": "6.1.4",
|
|
162
162
|
"shelljs": "^0.8.5"
|
|
163
163
|
},
|
|
@@ -171,5 +171,5 @@
|
|
|
171
171
|
"publishConfig": { "access": "public" },
|
|
172
172
|
"executors": "./executors.json",
|
|
173
173
|
"generators": "./generators.json",
|
|
174
|
-
"gitHead": "
|
|
174
|
+
"gitHead": "c73b8add86440a99e22e6f0ed24706747b54d5ea"
|
|
175
175
|
}
|
package/dist/chunk-6W6BUGIO.mjs
DELETED
|
@@ -1,133 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
initGenerator,
|
|
3
|
-
run,
|
|
4
|
-
withRunGenerator
|
|
5
|
-
} from "./chunk-B425V6SC.mjs";
|
|
6
|
-
import {
|
|
7
|
-
getCloudTemplateName
|
|
8
|
-
} from "./chunk-5TB4HFDP.mjs";
|
|
9
|
-
|
|
10
|
-
// src/generators/init/generator.ts
|
|
11
|
-
import {
|
|
12
|
-
addDependenciesToPackageJson,
|
|
13
|
-
addProjectConfiguration,
|
|
14
|
-
formatFiles,
|
|
15
|
-
readJsonFile,
|
|
16
|
-
runTasksInSerial
|
|
17
|
-
} from "@nx/devkit";
|
|
18
|
-
import { readFileSync, unlinkSync } from "node:fs";
|
|
19
|
-
import { join } from "node:path";
|
|
20
|
-
async function initGeneratorFn(tree, options, config) {
|
|
21
|
-
const task = initGenerator(tree, options);
|
|
22
|
-
addProjectConfiguration(tree, options.name || "deployment", {
|
|
23
|
-
root: options.directory || "./deployment",
|
|
24
|
-
projectType: "application",
|
|
25
|
-
sourceRoot: options.directory || "./deployment",
|
|
26
|
-
targets: {
|
|
27
|
-
up: {
|
|
28
|
-
executor: "@nx-extend/pulumi:up",
|
|
29
|
-
options: {}
|
|
30
|
-
},
|
|
31
|
-
preview: {
|
|
32
|
-
executor: "@nx-extend/pulumi:preview",
|
|
33
|
-
options: {}
|
|
34
|
-
},
|
|
35
|
-
refresh: {
|
|
36
|
-
executor: "@nx-extend/pulumi:refresh",
|
|
37
|
-
options: {}
|
|
38
|
-
},
|
|
39
|
-
import: {
|
|
40
|
-
executor: "@nx-extend/pulumi:import",
|
|
41
|
-
options: {}
|
|
42
|
-
}
|
|
43
|
-
},
|
|
44
|
-
tags: ["infra:pulumi"]
|
|
45
|
-
});
|
|
46
|
-
await runTasksInSerial(
|
|
47
|
-
generateNewPulumiProject(tree, options, config),
|
|
48
|
-
loginToPulumi(tree, options, config),
|
|
49
|
-
addPulumiDeps(tree, options),
|
|
50
|
-
cleanupProject(tree, options)
|
|
51
|
-
)();
|
|
52
|
-
if (!options.skipFormat) {
|
|
53
|
-
await formatFiles(tree);
|
|
54
|
-
}
|
|
55
|
-
return task;
|
|
56
|
-
}
|
|
57
|
-
var generator_default = withRunGenerator(
|
|
58
|
-
"Initialize Storm Pulumi workspace",
|
|
59
|
-
initGeneratorFn
|
|
60
|
-
);
|
|
61
|
-
function generateNewPulumiProject(tree, options, config) {
|
|
62
|
-
return () => {
|
|
63
|
-
const template = getCloudTemplateName(options.provider);
|
|
64
|
-
run(
|
|
65
|
-
config,
|
|
66
|
-
[
|
|
67
|
-
`pulumi new ${template}`,
|
|
68
|
-
`--name=${options.name || "deployment"}`,
|
|
69
|
-
`--dir=${options.directory || "./deployment"}`,
|
|
70
|
-
options.secretsProvider && `--secrets-provider=${options.secretsProvider}`,
|
|
71
|
-
"--generate-only",
|
|
72
|
-
"--yes",
|
|
73
|
-
"--force"
|
|
74
|
-
].filter(Boolean).join(" "),
|
|
75
|
-
join(config.workspaceRoot, options.directory || "./deployment"),
|
|
76
|
-
"inherit"
|
|
77
|
-
);
|
|
78
|
-
};
|
|
79
|
-
}
|
|
80
|
-
function loginToPulumi(tree, options, config) {
|
|
81
|
-
return () => {
|
|
82
|
-
if (!options.login) {
|
|
83
|
-
return;
|
|
84
|
-
}
|
|
85
|
-
if (options.login.startsWith("file://")) {
|
|
86
|
-
options.login = `file://${tree.root}/${options.directory || "./deployment"}/${options.login.replace("file://", "")}`;
|
|
87
|
-
}
|
|
88
|
-
run(
|
|
89
|
-
config,
|
|
90
|
-
["pulumi login", options.login].filter(Boolean).join(" "),
|
|
91
|
-
join(config.workspaceRoot, options.directory || "./deployment"),
|
|
92
|
-
"inherit",
|
|
93
|
-
{
|
|
94
|
-
...process.env,
|
|
95
|
-
PULUMI_EXPERIMENTAL: "true"
|
|
96
|
-
}
|
|
97
|
-
);
|
|
98
|
-
};
|
|
99
|
-
}
|
|
100
|
-
function addPulumiDeps(tree, options) {
|
|
101
|
-
return () => {
|
|
102
|
-
const packageJson = readJsonFile(`${options.directory}/package.json`);
|
|
103
|
-
if (packageJson) {
|
|
104
|
-
addDependenciesToPackageJson(tree, {}, packageJson.dependencies || {})();
|
|
105
|
-
}
|
|
106
|
-
};
|
|
107
|
-
}
|
|
108
|
-
function cleanupProject(tree, options) {
|
|
109
|
-
return () => {
|
|
110
|
-
const indexTsLocation = join(
|
|
111
|
-
tree.root,
|
|
112
|
-
`${options.directory || "./deployment"}/index.ts`
|
|
113
|
-
);
|
|
114
|
-
tree.write(
|
|
115
|
-
`${options.directory}/pulumi.ts`,
|
|
116
|
-
readFileSync(indexTsLocation).toString()
|
|
117
|
-
);
|
|
118
|
-
unlinkSync(
|
|
119
|
-
join(tree.root, `${options.directory || "./deployment"}/.gitignore`)
|
|
120
|
-
);
|
|
121
|
-
unlinkSync(
|
|
122
|
-
join(tree.root, `${options.directory || "./deployment"}/package.json`)
|
|
123
|
-
);
|
|
124
|
-
unlinkSync(
|
|
125
|
-
join(tree.root, `${options.directory || "./deployment"}/tsconfig.json`)
|
|
126
|
-
);
|
|
127
|
-
};
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
export {
|
|
131
|
-
initGeneratorFn,
|
|
132
|
-
generator_default
|
|
133
|
-
};
|
package/dist/chunk-Q3OADP6T.js
DELETED
|
@@ -1,133 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
var _chunkV5WYZRAMjs = require('./chunk-V5WYZRAM.js');
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
var _chunkQDPXTR73js = require('./chunk-QDPXTR73.js');
|
|
9
|
-
|
|
10
|
-
// src/generators/init/generator.ts
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
var _devkit = require('@nx/devkit');
|
|
18
|
-
var _fs = require('fs');
|
|
19
|
-
var _path = require('path');
|
|
20
|
-
async function initGeneratorFn(tree, options, config) {
|
|
21
|
-
const task = _chunkV5WYZRAMjs.initGenerator.call(void 0, tree, options);
|
|
22
|
-
_devkit.addProjectConfiguration.call(void 0, tree, options.name || "deployment", {
|
|
23
|
-
root: options.directory || "./deployment",
|
|
24
|
-
projectType: "application",
|
|
25
|
-
sourceRoot: options.directory || "./deployment",
|
|
26
|
-
targets: {
|
|
27
|
-
up: {
|
|
28
|
-
executor: "@nx-extend/pulumi:up",
|
|
29
|
-
options: {}
|
|
30
|
-
},
|
|
31
|
-
preview: {
|
|
32
|
-
executor: "@nx-extend/pulumi:preview",
|
|
33
|
-
options: {}
|
|
34
|
-
},
|
|
35
|
-
refresh: {
|
|
36
|
-
executor: "@nx-extend/pulumi:refresh",
|
|
37
|
-
options: {}
|
|
38
|
-
},
|
|
39
|
-
import: {
|
|
40
|
-
executor: "@nx-extend/pulumi:import",
|
|
41
|
-
options: {}
|
|
42
|
-
}
|
|
43
|
-
},
|
|
44
|
-
tags: ["infra:pulumi"]
|
|
45
|
-
});
|
|
46
|
-
await _devkit.runTasksInSerial.call(void 0,
|
|
47
|
-
generateNewPulumiProject(tree, options, config),
|
|
48
|
-
loginToPulumi(tree, options, config),
|
|
49
|
-
addPulumiDeps(tree, options),
|
|
50
|
-
cleanupProject(tree, options)
|
|
51
|
-
)();
|
|
52
|
-
if (!options.skipFormat) {
|
|
53
|
-
await _devkit.formatFiles.call(void 0, tree);
|
|
54
|
-
}
|
|
55
|
-
return task;
|
|
56
|
-
}
|
|
57
|
-
var generator_default = _chunkV5WYZRAMjs.withRunGenerator.call(void 0,
|
|
58
|
-
"Initialize Storm Pulumi workspace",
|
|
59
|
-
initGeneratorFn
|
|
60
|
-
);
|
|
61
|
-
function generateNewPulumiProject(tree, options, config) {
|
|
62
|
-
return () => {
|
|
63
|
-
const template = _chunkQDPXTR73js.getCloudTemplateName.call(void 0, options.provider);
|
|
64
|
-
_chunkV5WYZRAMjs.run.call(void 0,
|
|
65
|
-
config,
|
|
66
|
-
[
|
|
67
|
-
`pulumi new ${template}`,
|
|
68
|
-
`--name=${options.name || "deployment"}`,
|
|
69
|
-
`--dir=${options.directory || "./deployment"}`,
|
|
70
|
-
options.secretsProvider && `--secrets-provider=${options.secretsProvider}`,
|
|
71
|
-
"--generate-only",
|
|
72
|
-
"--yes",
|
|
73
|
-
"--force"
|
|
74
|
-
].filter(Boolean).join(" "),
|
|
75
|
-
_path.join.call(void 0, config.workspaceRoot, options.directory || "./deployment"),
|
|
76
|
-
"inherit"
|
|
77
|
-
);
|
|
78
|
-
};
|
|
79
|
-
}
|
|
80
|
-
function loginToPulumi(tree, options, config) {
|
|
81
|
-
return () => {
|
|
82
|
-
if (!options.login) {
|
|
83
|
-
return;
|
|
84
|
-
}
|
|
85
|
-
if (options.login.startsWith("file://")) {
|
|
86
|
-
options.login = `file://${tree.root}/${options.directory || "./deployment"}/${options.login.replace("file://", "")}`;
|
|
87
|
-
}
|
|
88
|
-
_chunkV5WYZRAMjs.run.call(void 0,
|
|
89
|
-
config,
|
|
90
|
-
["pulumi login", options.login].filter(Boolean).join(" "),
|
|
91
|
-
_path.join.call(void 0, config.workspaceRoot, options.directory || "./deployment"),
|
|
92
|
-
"inherit",
|
|
93
|
-
{
|
|
94
|
-
...process.env,
|
|
95
|
-
PULUMI_EXPERIMENTAL: "true"
|
|
96
|
-
}
|
|
97
|
-
);
|
|
98
|
-
};
|
|
99
|
-
}
|
|
100
|
-
function addPulumiDeps(tree, options) {
|
|
101
|
-
return () => {
|
|
102
|
-
const packageJson = _devkit.readJsonFile.call(void 0, `${options.directory}/package.json`);
|
|
103
|
-
if (packageJson) {
|
|
104
|
-
_devkit.addDependenciesToPackageJson.call(void 0, tree, {}, packageJson.dependencies || {})();
|
|
105
|
-
}
|
|
106
|
-
};
|
|
107
|
-
}
|
|
108
|
-
function cleanupProject(tree, options) {
|
|
109
|
-
return () => {
|
|
110
|
-
const indexTsLocation = _path.join.call(void 0,
|
|
111
|
-
tree.root,
|
|
112
|
-
`${options.directory || "./deployment"}/index.ts`
|
|
113
|
-
);
|
|
114
|
-
tree.write(
|
|
115
|
-
`${options.directory}/pulumi.ts`,
|
|
116
|
-
_fs.readFileSync.call(void 0, indexTsLocation).toString()
|
|
117
|
-
);
|
|
118
|
-
_fs.unlinkSync.call(void 0,
|
|
119
|
-
_path.join.call(void 0, tree.root, `${options.directory || "./deployment"}/.gitignore`)
|
|
120
|
-
);
|
|
121
|
-
_fs.unlinkSync.call(void 0,
|
|
122
|
-
_path.join.call(void 0, tree.root, `${options.directory || "./deployment"}/package.json`)
|
|
123
|
-
);
|
|
124
|
-
_fs.unlinkSync.call(void 0,
|
|
125
|
-
_path.join.call(void 0, tree.root, `${options.directory || "./deployment"}/tsconfig.json`)
|
|
126
|
-
);
|
|
127
|
-
};
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
exports.initGeneratorFn = initGeneratorFn; exports.generator_default = generator_default;
|