@storm-software/pulumi-tools 0.13.43 → 0.14.2

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.
Files changed (64) hide show
  1. package/CHANGELOG.md +62 -0
  2. package/README.md +1 -1
  3. package/dist/{chunk-GASM5JOT.js → chunk-2COR4O2A.js} +2 -2
  4. package/dist/{chunk-EU64W3TI.mjs → chunk-3RRBWED7.mjs} +1 -1
  5. package/dist/chunk-4PQ4X4J4.js +1 -0
  6. package/dist/{chunk-KPFHCT4A.mjs → chunk-5TB4HFDP.mjs} +2 -1
  7. package/dist/chunk-7I63VQP3.js +120 -0
  8. package/dist/{chunk-PYYI7CA3.mjs → chunk-A4XAUTRY.mjs} +1 -1
  9. package/dist/{chunk-7G2M77VJ.js → chunk-CKYKA4C5.js} +7 -7
  10. package/dist/{chunk-6UIH6RCK.mjs → chunk-GKAE6MZP.mjs} +1 -1
  11. package/dist/{chunk-3OKHNU6F.js → chunk-GPFQHBDZ.js} +2 -2
  12. package/dist/{chunk-RZX26I3L.mjs → chunk-IL253CB6.mjs} +1 -1
  13. package/dist/{chunk-NPVDHO4H.mjs → chunk-K2ERWMQT.mjs} +1 -1
  14. package/dist/{chunk-VXI4LNUL.js → chunk-L2ZLJKEH.js} +2 -2
  15. package/dist/{chunk-HUKXHFCA.js → chunk-QDPXTR73.js} +2 -1
  16. package/dist/{chunk-ATM7EADM.js → chunk-QYIKBG3O.js} +2 -2
  17. package/dist/{chunk-USQAM3BN.mjs → chunk-RD3K5LCE.mjs} +2 -2
  18. package/dist/{chunk-PIK42X67.mjs → chunk-RNQY5FSU.mjs} +9 -5
  19. package/dist/{chunk-L7FXGR6F.mjs → chunk-RX6GREPG.mjs} +1 -1
  20. package/dist/chunk-S6XCS2TA.mjs +120 -0
  21. package/dist/{chunk-ACCVWIOF.mjs → chunk-UG757LXR.mjs} +1 -1
  22. package/dist/{chunk-3QQTCBVN.js → chunk-X6EJT62T.js} +3 -3
  23. package/dist/chunk-Z35MXE2Z.mjs +0 -0
  24. package/dist/{chunk-EVILNGJA.js → chunk-ZHAA5HRP.js} +2 -2
  25. package/dist/{chunk-I3D4CDB5.js → chunk-ZRM5UBCA.js} +71 -67
  26. package/dist/executors.js +7 -7
  27. package/dist/executors.mjs +8 -8
  28. package/dist/generators.js +4 -4
  29. package/dist/generators.mjs +4 -4
  30. package/dist/index.d.mts +7 -0
  31. package/dist/index.d.ts +7 -0
  32. package/dist/index.js +26 -11
  33. package/dist/index.mjs +25 -10
  34. package/dist/src/base/base-executor.js +3 -3
  35. package/dist/src/base/base-executor.mjs +3 -3
  36. package/dist/src/base/index.js +4 -4
  37. package/dist/src/base/index.mjs +4 -4
  38. package/dist/src/base/providers.d.mts +3 -2
  39. package/dist/src/base/providers.d.ts +3 -2
  40. package/dist/src/base/providers.js +2 -2
  41. package/dist/src/base/providers.mjs +2 -2
  42. package/dist/src/executors/config/executor.js +4 -4
  43. package/dist/src/executors/config/executor.mjs +4 -4
  44. package/dist/src/executors/import/executor.js +4 -4
  45. package/dist/src/executors/import/executor.mjs +4 -4
  46. package/dist/src/executors/preview/executor.js +4 -4
  47. package/dist/src/executors/preview/executor.mjs +4 -4
  48. package/dist/src/executors/refresh/executor.js +4 -4
  49. package/dist/src/executors/refresh/executor.mjs +4 -4
  50. package/dist/src/executors/up/executor.js +4 -4
  51. package/dist/src/executors/up/executor.mjs +4 -4
  52. package/dist/src/generators/init/generator.js +4 -4
  53. package/dist/src/generators/init/generator.mjs +4 -4
  54. package/dist/src/lib/aws/index.d.mts +7 -0
  55. package/dist/src/lib/aws/index.d.ts +7 -0
  56. package/dist/src/lib/aws/index.js +19 -0
  57. package/dist/src/lib/aws/index.mjs +19 -0
  58. package/dist/src/lib/aws/providers.d.mts +60 -0
  59. package/dist/src/lib/aws/providers.d.ts +60 -0
  60. package/dist/src/lib/aws/providers.js +18 -0
  61. package/dist/src/lib/aws/providers.mjs +18 -0
  62. package/dist/tsup.config.js +1 -0
  63. package/dist/tsup.config.mjs +2 -1
  64. package/package.json +44 -9
package/CHANGELOG.md CHANGED
@@ -2,6 +2,68 @@
2
2
 
3
3
  # Changelog for Storm Ops - Pulumi Tools
4
4
 
5
+ ## [0.14.1](https://github.com/storm-software/storm-ops/releases/tag/pulumi-tools%400.14.1) (2025-07-31)
6
+
7
+ ### Bug Fixes
8
+
9
+ - **git-tools:** Resolve issue with incorrect log formatting
10
+ ([062583d84](https://github.com/storm-software/storm-ops/commit/062583d84))
11
+
12
+ ### Miscellaneous
13
+
14
+ - **monorepo:** Regenerate README markdown files
15
+ ([e5c02a04d](https://github.com/storm-software/storm-ops/commit/e5c02a04d))
16
+
17
+ ### Updated Dependencies
18
+
19
+ - Updated config-tools to 1.176.17
20
+ - Updated config to 1.125.16
21
+
22
+ ## [0.14.0](https://github.com/storm-software/storm-ops/releases/tag/pulumi-tools%400.14.0) (2025-07-31)
23
+
24
+ ### Features
25
+
26
+ - **pulumi-tools:** Added pulumi AWS helper functions
27
+ ([1a123620d](https://github.com/storm-software/storm-ops/commit/1a123620d))
28
+
29
+ ### Miscellaneous
30
+
31
+ - **monorepo:** Update TypeScript to v5.9.2
32
+ ([d4a90784d](https://github.com/storm-software/storm-ops/commit/d4a90784d))
33
+ - **monorepo:** Regenerate README markdown files
34
+ ([18c227394](https://github.com/storm-software/storm-ops/commit/18c227394))
35
+ - **monorepo:** Update workspace package links
36
+ ([3ec10b48b](https://github.com/storm-software/storm-ops/commit/3ec10b48b))
37
+ - **monorepo:** Regenerate README markdown files
38
+ ([8aeb77070](https://github.com/storm-software/storm-ops/commit/8aeb77070))
39
+ - **monorepo:** Regenerate workspace repository packages
40
+ ([a78abe68e](https://github.com/storm-software/storm-ops/commit/a78abe68e))
41
+ - **monorepo:** Regenerate README markdown files
42
+ ([b7b8fec51](https://github.com/storm-software/storm-ops/commit/b7b8fec51))
43
+ - **eslint:** Update package dependencies
44
+ ([a6eaee75a](https://github.com/storm-software/storm-ops/commit/a6eaee75a))
45
+ - **monorepo:** Regenerate README markdown files
46
+ ([d02c46b78](https://github.com/storm-software/storm-ops/commit/d02c46b78))
47
+ - **git-tools:** Ensure dependencies are marked `external` by default for `bin`
48
+ build
49
+ ([b6c66aae5](https://github.com/storm-software/storm-ops/commit/b6c66aae5))
50
+ - **monorepo:** Regenerate README markdown files
51
+ ([fa4b5a24f](https://github.com/storm-software/storm-ops/commit/fa4b5a24f))
52
+
53
+ ### Updated Dependencies
54
+
55
+ - Updated config-tools to 1.176.16
56
+ - Updated config to 1.125.15
57
+
58
+ ## [0.13.43](https://github.com/storm-software/storm-ops/releases/tag/pulumi-tools%400.13.43) (2025-07-14)
59
+
60
+ ### Miscellaneous
61
+
62
+ - **monorepo:** Update workspace package links
63
+ ([aa3c5e120](https://github.com/storm-software/storm-ops/commit/aa3c5e120))
64
+ - **monorepo:** Regenerate README markdown files
65
+ ([11ac201a7](https://github.com/storm-software/storm-ops/commit/11ac201a7))
66
+
5
67
  ## [0.13.42](https://github.com/storm-software/storm-ops/releases/tag/pulumi-tools%400.13.42) (2025-07-14)
6
68
 
7
69
  ### 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
- [![Version](https://img.shields.io/badge/version-0.13.41-1fb2a6.svg?style=for-the-badge&color=1fb2a6)](https://prettier.io/)&nbsp;[![Nx](https://img.shields.io/badge/Nx-17.0.2-lightgrey?style=for-the-badge&logo=nx&logoWidth=20&&color=1fb2a6)](http://nx.dev/)&nbsp;[![NextJs](https://img.shields.io/badge/Next.js-14.0.2-lightgrey?style=for-the-badge&logo=nextdotjs&logoWidth=20&color=1fb2a6)](https://nextjs.org/)&nbsp;[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg?style=for-the-badge&logo=commitlint&color=1fb2a6)](http://commitizen.github.io/cz-cli/)&nbsp;![Semantic-Release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg?style=for-the-badge&color=1fb2a6)&nbsp;[![documented with Fumadocs](https://img.shields.io/badge/documented_with-fumadocs-success.svg?style=for-the-badge&logo=readthedocs&color=1fb2a6)](https://fumadocs.vercel.app/)&nbsp;![GitHub Workflow Status (with event)](https://img.shields.io/github/actions/workflow/status/storm-software/storm-ops/cr.yml?style=for-the-badge&logo=github-actions&color=1fb2a6)
24
+ [![Version](https://img.shields.io/badge/version-0.13.43-1fb2a6.svg?style=for-the-badge&color=1fb2a6)](https://prettier.io/)&nbsp;[![Nx](https://img.shields.io/badge/Nx-17.0.2-lightgrey?style=for-the-badge&logo=nx&logoWidth=20&&color=1fb2a6)](http://nx.dev/)&nbsp;[![NextJs](https://img.shields.io/badge/Next.js-14.0.2-lightgrey?style=for-the-badge&logo=nextdotjs&logoWidth=20&color=1fb2a6)](https://nextjs.org/)&nbsp;[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg?style=for-the-badge&logo=commitlint&color=1fb2a6)](http://commitizen.github.io/cz-cli/)&nbsp;![Semantic-Release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg?style=for-the-badge&color=1fb2a6)&nbsp;[![documented with Fumadocs](https://img.shields.io/badge/documented_with-fumadocs-success.svg?style=for-the-badge&logo=readthedocs&color=1fb2a6)](https://fumadocs.vercel.app/)&nbsp;![GitHub Workflow Status (with event)](https://img.shields.io/github/actions/workflow/status/storm-software/storm-ops/cr.yml?style=for-the-badge&logo=github-actions&color=1fb2a6)
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 _chunk3QQTCBVNjs = require('./chunk-3QQTCBVN.js');
3
+ var _chunkX6EJT62Tjs = require('./chunk-X6EJT62T.js');
4
4
 
5
5
  // src/executors/refresh/executor.ts
6
- var executor_default = _chunk3QQTCBVNjs.withPulumiExecutor.call(void 0,
6
+ var executor_default = _chunkX6EJT62Tjs.withPulumiExecutor.call(void 0,
7
7
  "refresh",
8
8
  (options) => [
9
9
  "--suppress-progress",
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  withPulumiExecutor
3
- } from "./chunk-RZX26I3L.mjs";
3
+ } from "./chunk-IL253CB6.mjs";
4
4
 
5
5
  // src/executors/refresh/executor.ts
6
6
  var executor_default = withPulumiExecutor(
@@ -0,0 +1 @@
1
+ "use strict";
@@ -3,10 +3,11 @@ var Provider = /* @__PURE__ */ ((Provider2) => {
3
3
  Provider2["AWS"] = "aws";
4
4
  Provider2["AZURE"] = "azure";
5
5
  Provider2["GOOGLE_CLOUD_PLATFORM"] = "gcp";
6
+ Provider2["CLOUDFLARE"] = "cloudflare";
6
7
  return Provider2;
7
8
  })(Provider || {});
8
9
  function getCloudTemplateName(cloudProvider) {
9
- return `${cloudProvider}-typescript`;
10
+ return `storm-software_${cloudProvider}`;
10
11
  }
11
12
 
12
13
  export {
@@ -0,0 +1,120 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } } function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
2
+
3
+ var _chunkQDPXTR73js = require('./chunk-QDPXTR73.js');
4
+
5
+ // src/lib/aws/providers.ts
6
+ var _aws = require('@pulumi/aws'); var aws = _interopRequireWildcard(_aws);
7
+ var _pulumi = require('@pulumi/pulumi'); var pulumi = _interopRequireWildcard(_pulumi);
8
+ var _defu = require('defu'); var _defu2 = _interopRequireDefault(_defu);
9
+ function getAWSTemplateName() {
10
+ return _chunkQDPXTR73js.getCloudTemplateName.call(void 0, "aws" /* AWS */);
11
+ }
12
+ function getProviderOpts(scope = "storm-cloud") {
13
+ const config = new pulumi.Config("aws");
14
+ const providerOpts = {
15
+ provider: new aws.Provider(getAWSTemplateName(), {
16
+ region: config.require("aws_region")
17
+ }),
18
+ scope,
19
+ zone: config.get("aws_zone") || "us-east-1a"
20
+ };
21
+ return providerOpts;
22
+ }
23
+ var size = aws.ec2.InstanceType.T2_Micro;
24
+ function vpc(opts = getProviderOpts(), appId = "default", override = {}) {
25
+ return new aws.ec2.DefaultVpc(
26
+ `${opts.scope}-${appId}-${opts.zone}-vpc`,
27
+ _defu2.default.call(void 0,
28
+ {
29
+ tags: {
30
+ Scope: opts.scope,
31
+ Name: `${opts.scope}-${appId}-vpc`,
32
+ AppId: appId
33
+ }
34
+ },
35
+ override
36
+ ),
37
+ opts
38
+ );
39
+ }
40
+ function subnet(opts = getProviderOpts(), appId = "default", override = {}) {
41
+ return new aws.ec2.DefaultSubnet(
42
+ `${opts.scope}-${appId}-${opts.zone}-subnet`,
43
+ _defu2.default.call(void 0,
44
+ {
45
+ availabilityZone: opts.zone,
46
+ tags: {
47
+ Scope: opts.scope,
48
+ Name: `${opts.scope}-${appId}-${opts.zone}-subnet`,
49
+ AppId: appId
50
+ }
51
+ },
52
+ override
53
+ ),
54
+ opts
55
+ );
56
+ }
57
+ function securityGroup(vpc2, opts = getProviderOpts(), appId = "default", override = {}) {
58
+ return new aws.ec2.SecurityGroup(
59
+ `${opts.scope}-${appId}-${opts.zone}-sg`,
60
+ _defu2.default.call(void 0,
61
+ {
62
+ vpcId: vpc2.id,
63
+ description: `Enable HTTP access for ${appId === "default" ? opts.scope : appId !== opts.scope ? `${opts.scope}-${appId}` : opts.scope}`,
64
+ ingress: [
65
+ {
66
+ protocol: aws.ec2.TCPProtocol,
67
+ fromPort: 80,
68
+ toPort: 80,
69
+ cidrBlocks: ["0.0.0.0/0"]
70
+ }
71
+ ],
72
+ tags: {
73
+ Scope: opts.scope,
74
+ Name: `${opts.scope}-${appId}-sg`,
75
+ AppId: appId
76
+ }
77
+ },
78
+ override
79
+ ),
80
+ opts
81
+ );
82
+ }
83
+ function ec2Instance(vpc2, subnet2, securityGroup2, opts = getProviderOpts(), appId = "default", override = {}) {
84
+ return new aws.ec2.Instance(
85
+ `${opts.scope}-${appId}-${opts.zone}-ec2`,
86
+ _defu2.default.call(void 0,
87
+ {
88
+ instanceType: size,
89
+ ami: aws.ec2.getAmi({
90
+ mostRecent: true,
91
+ owners: ["amazon"],
92
+ filters: [
93
+ {
94
+ name: "name",
95
+ values: ["amzn2-ami-hvm-*-x86_64-gp2"]
96
+ }
97
+ ]
98
+ }).then((ami) => ami.id),
99
+ subnetId: subnet2.id,
100
+ vpcSecurityGroupIds: [securityGroup2.id],
101
+ tags: {
102
+ Scope: opts.scope,
103
+ Name: `${opts.scope}-${appId}-ec2`,
104
+ AppId: appId
105
+ }
106
+ },
107
+ override
108
+ ),
109
+ opts
110
+ );
111
+ }
112
+
113
+
114
+
115
+
116
+
117
+
118
+
119
+
120
+ exports.getAWSTemplateName = getAWSTemplateName; exports.getProviderOpts = getProviderOpts; exports.vpc = vpc; exports.subnet = subnet; exports.securityGroup = securityGroup; exports.ec2Instance = ec2Instance;
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  withPulumiExecutor
3
- } from "./chunk-RZX26I3L.mjs";
3
+ } from "./chunk-IL253CB6.mjs";
4
4
 
5
5
  // src/executors/import/executor.ts
6
6
  var executor_default = withPulumiExecutor("import", (options) => [
@@ -1,11 +1,11 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkHUKXHFCAjs = require('./chunk-HUKXHFCA.js');
3
+ var _chunkQDPXTR73js = require('./chunk-QDPXTR73.js');
4
4
 
5
5
 
6
6
 
7
7
 
8
- var _chunkI3D4CDB5js = require('./chunk-I3D4CDB5.js');
8
+ var _chunkZRM5UBCAjs = require('./chunk-ZRM5UBCA.js');
9
9
 
10
10
  // src/generators/init/generator.ts
11
11
 
@@ -18,7 +18,7 @@ var _devkit = require('@nx/devkit');
18
18
  var _fs = require('fs');
19
19
  var _path = require('path');
20
20
  async function initGeneratorFn(tree, options, config) {
21
- const task = _chunkI3D4CDB5js.initGenerator.call(void 0, tree, options);
21
+ const task = _chunkZRM5UBCAjs.initGenerator.call(void 0, tree, options);
22
22
  _devkit.addProjectConfiguration.call(void 0, tree, options.name || "deployment", {
23
23
  root: options.directory || "./deployment",
24
24
  projectType: "application",
@@ -54,14 +54,14 @@ async function initGeneratorFn(tree, options, config) {
54
54
  }
55
55
  return task;
56
56
  }
57
- var generator_default = _chunkI3D4CDB5js.withRunGenerator.call(void 0,
57
+ var generator_default = _chunkZRM5UBCAjs.withRunGenerator.call(void 0,
58
58
  "Initialize Storm Pulumi workspace",
59
59
  initGeneratorFn
60
60
  );
61
61
  function generateNewPulumiProject(tree, options, config) {
62
62
  return () => {
63
- const template = _chunkHUKXHFCAjs.getCloudTemplateName.call(void 0, options.provider);
64
- _chunkI3D4CDB5js.run.call(void 0,
63
+ const template = _chunkQDPXTR73js.getCloudTemplateName.call(void 0, options.provider);
64
+ _chunkZRM5UBCAjs.run.call(void 0,
65
65
  config,
66
66
  [
67
67
  `pulumi new ${template}`,
@@ -85,7 +85,7 @@ function loginToPulumi(tree, options, config) {
85
85
  if (options.login.startsWith("file://")) {
86
86
  options.login = `file://${tree.root}/${options.directory || "./deployment"}/${options.login.replace("file://", "")}`;
87
87
  }
88
- _chunkI3D4CDB5js.run.call(void 0,
88
+ _chunkZRM5UBCAjs.run.call(void 0,
89
89
  config,
90
90
  ["pulumi login", options.login].filter(Boolean).join(" "),
91
91
  _path.join.call(void 0, config.workspaceRoot, options.directory || "./deployment"),
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  withPulumiExecutor
3
- } from "./chunk-RZX26I3L.mjs";
3
+ } from "./chunk-IL253CB6.mjs";
4
4
 
5
5
  // src/executors/preview/executor.ts
6
6
  var executor_default = withPulumiExecutor(
@@ -1,9 +1,9 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunk3QQTCBVNjs = require('./chunk-3QQTCBVN.js');
3
+ var _chunkX6EJT62Tjs = require('./chunk-X6EJT62T.js');
4
4
 
5
5
  // src/executors/preview/executor.ts
6
- var executor_default = _chunk3QQTCBVNjs.withPulumiExecutor.call(void 0,
6
+ var executor_default = _chunkX6EJT62Tjs.withPulumiExecutor.call(void 0,
7
7
  "preview",
8
8
  (options) => [
9
9
  options.stack && `--stack=${options.stack}`,
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  run,
3
3
  withRunExecutor
4
- } from "./chunk-PIK42X67.mjs";
4
+ } from "./chunk-RNQY5FSU.mjs";
5
5
 
6
6
  // src/base/base-executor.ts
7
7
  import { join } from "node:path";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  withPulumiExecutor
3
- } from "./chunk-RZX26I3L.mjs";
3
+ } from "./chunk-IL253CB6.mjs";
4
4
 
5
5
  // src/executors/up/executor.ts
6
6
  var executor_default = withPulumiExecutor("up", (options) => [
@@ -1,9 +1,9 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunk3QQTCBVNjs = require('./chunk-3QQTCBVN.js');
3
+ var _chunkX6EJT62Tjs = require('./chunk-X6EJT62T.js');
4
4
 
5
5
  // src/executors/config/executor.ts
6
- var executor_default = _chunk3QQTCBVNjs.withPulumiExecutor.call(void 0, "config", (options) => [
6
+ var executor_default = _chunkX6EJT62Tjs.withPulumiExecutor.call(void 0, "config", (options) => [
7
7
  options.action,
8
8
  options.showSecrets && `--show-secrets`,
9
9
  options.secret && `--secret`,
@@ -3,10 +3,11 @@ var Provider = /* @__PURE__ */ ((Provider2) => {
3
3
  Provider2["AWS"] = "aws";
4
4
  Provider2["AZURE"] = "azure";
5
5
  Provider2["GOOGLE_CLOUD_PLATFORM"] = "gcp";
6
+ Provider2["CLOUDFLARE"] = "cloudflare";
6
7
  return Provider2;
7
8
  })(Provider || {});
8
9
  function getCloudTemplateName(cloudProvider) {
9
- return `${cloudProvider}-typescript`;
10
+ return `storm-software_${cloudProvider}`;
10
11
  }
11
12
 
12
13
 
@@ -1,9 +1,9 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunk3QQTCBVNjs = require('./chunk-3QQTCBVN.js');
3
+ var _chunkX6EJT62Tjs = require('./chunk-X6EJT62T.js');
4
4
 
5
5
  // src/executors/import/executor.ts
6
- var executor_default = _chunk3QQTCBVNjs.withPulumiExecutor.call(void 0, "import", (options) => [
6
+ var executor_default = _chunkX6EJT62Tjs.withPulumiExecutor.call(void 0, "import", (options) => [
7
7
  options.target,
8
8
  options.name,
9
9
  options.id,
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  getCloudTemplateName
3
- } from "./chunk-KPFHCT4A.mjs";
3
+ } from "./chunk-5TB4HFDP.mjs";
4
4
  import {
5
5
  initGenerator,
6
6
  run,
7
7
  withRunGenerator
8
- } from "./chunk-PIK42X67.mjs";
8
+ } from "./chunk-RNQY5FSU.mjs";
9
9
 
10
10
  // src/generators/init/generator.ts
11
11
  import {
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  __dirname,
3
3
  __require
4
- } from "./chunk-ACCVWIOF.mjs";
4
+ } from "./chunk-UG757LXR.mjs";
5
5
 
6
6
  // ../config-tools/src/utilities/run.ts
7
7
  import { exec, execSync } from "node:child_process";
@@ -651,16 +651,20 @@ import chalk from "chalk";
651
651
  var chalkDefault = {
652
652
  hex: (_) => (message) => message,
653
653
  bgHex: (_) => ({
654
- whiteBright: (message) => message
654
+ whiteBright: (message) => message,
655
+ white: (message) => message
655
656
  }),
657
+ white: (message) => message,
656
658
  whiteBright: (message) => message,
657
659
  gray: (message) => message,
658
660
  bold: {
659
661
  hex: (_) => (message) => message,
660
662
  bgHex: (_) => ({
661
- whiteBright: (message) => message
663
+ whiteBright: (message) => message,
664
+ white: (message) => message
662
665
  }),
663
- whiteBright: (message) => message
666
+ whiteBright: (message) => message,
667
+ white: (message) => message
664
668
  },
665
669
  dim: {
666
670
  hex: (_) => (message) => message,
@@ -669,7 +673,7 @@ var chalkDefault = {
669
673
  };
670
674
  var getChalk = () => {
671
675
  let _chalk = chalk;
672
- if (!_chalk?.hex || !_chalk?.bold?.hex || !_chalk?.bgHex || !_chalk?.whiteBright) {
676
+ if (!_chalk?.hex || !_chalk?.bold?.hex || !_chalk?.bgHex || !_chalk?.whiteBright || !_chalk?.white) {
673
677
  _chalk = chalkDefault;
674
678
  }
675
679
  return _chalk;
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  withPulumiExecutor
3
- } from "./chunk-RZX26I3L.mjs";
3
+ } from "./chunk-IL253CB6.mjs";
4
4
 
5
5
  // src/executors/config/executor.ts
6
6
  var executor_default = withPulumiExecutor("config", (options) => [
@@ -0,0 +1,120 @@
1
+ import {
2
+ getCloudTemplateName
3
+ } from "./chunk-5TB4HFDP.mjs";
4
+
5
+ // src/lib/aws/providers.ts
6
+ import * as aws from "@pulumi/aws";
7
+ import * as pulumi from "@pulumi/pulumi";
8
+ import defu from "defu";
9
+ function getAWSTemplateName() {
10
+ return getCloudTemplateName("aws" /* AWS */);
11
+ }
12
+ function getProviderOpts(scope = "storm-cloud") {
13
+ const config = new pulumi.Config("aws");
14
+ const providerOpts = {
15
+ provider: new aws.Provider(getAWSTemplateName(), {
16
+ region: config.require("aws_region")
17
+ }),
18
+ scope,
19
+ zone: config.get("aws_zone") || "us-east-1a"
20
+ };
21
+ return providerOpts;
22
+ }
23
+ var size = aws.ec2.InstanceType.T2_Micro;
24
+ function vpc(opts = getProviderOpts(), appId = "default", override = {}) {
25
+ return new aws.ec2.DefaultVpc(
26
+ `${opts.scope}-${appId}-${opts.zone}-vpc`,
27
+ defu(
28
+ {
29
+ tags: {
30
+ Scope: opts.scope,
31
+ Name: `${opts.scope}-${appId}-vpc`,
32
+ AppId: appId
33
+ }
34
+ },
35
+ override
36
+ ),
37
+ opts
38
+ );
39
+ }
40
+ function subnet(opts = getProviderOpts(), appId = "default", override = {}) {
41
+ return new aws.ec2.DefaultSubnet(
42
+ `${opts.scope}-${appId}-${opts.zone}-subnet`,
43
+ defu(
44
+ {
45
+ availabilityZone: opts.zone,
46
+ tags: {
47
+ Scope: opts.scope,
48
+ Name: `${opts.scope}-${appId}-${opts.zone}-subnet`,
49
+ AppId: appId
50
+ }
51
+ },
52
+ override
53
+ ),
54
+ opts
55
+ );
56
+ }
57
+ function securityGroup(vpc2, opts = getProviderOpts(), appId = "default", override = {}) {
58
+ return new aws.ec2.SecurityGroup(
59
+ `${opts.scope}-${appId}-${opts.zone}-sg`,
60
+ defu(
61
+ {
62
+ vpcId: vpc2.id,
63
+ description: `Enable HTTP access for ${appId === "default" ? opts.scope : appId !== opts.scope ? `${opts.scope}-${appId}` : opts.scope}`,
64
+ ingress: [
65
+ {
66
+ protocol: aws.ec2.TCPProtocol,
67
+ fromPort: 80,
68
+ toPort: 80,
69
+ cidrBlocks: ["0.0.0.0/0"]
70
+ }
71
+ ],
72
+ tags: {
73
+ Scope: opts.scope,
74
+ Name: `${opts.scope}-${appId}-sg`,
75
+ AppId: appId
76
+ }
77
+ },
78
+ override
79
+ ),
80
+ opts
81
+ );
82
+ }
83
+ function ec2Instance(vpc2, subnet2, securityGroup2, opts = getProviderOpts(), appId = "default", override = {}) {
84
+ return new aws.ec2.Instance(
85
+ `${opts.scope}-${appId}-${opts.zone}-ec2`,
86
+ defu(
87
+ {
88
+ instanceType: size,
89
+ ami: aws.ec2.getAmi({
90
+ mostRecent: true,
91
+ owners: ["amazon"],
92
+ filters: [
93
+ {
94
+ name: "name",
95
+ values: ["amzn2-ami-hvm-*-x86_64-gp2"]
96
+ }
97
+ ]
98
+ }).then((ami) => ami.id),
99
+ subnetId: subnet2.id,
100
+ vpcSecurityGroupIds: [securityGroup2.id],
101
+ tags: {
102
+ Scope: opts.scope,
103
+ Name: `${opts.scope}-${appId}-ec2`,
104
+ AppId: appId
105
+ }
106
+ },
107
+ override
108
+ ),
109
+ opts
110
+ );
111
+ }
112
+
113
+ export {
114
+ getAWSTemplateName,
115
+ getProviderOpts,
116
+ vpc,
117
+ subnet,
118
+ securityGroup,
119
+ ec2Instance
120
+ };
@@ -5,7 +5,7 @@ var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require
5
5
  throw Error('Dynamic require of "' + x + '" is not supported');
6
6
  });
7
7
 
8
- // ../../node_modules/.pnpm/tsup@8.4.0_patch_hash=751a554d775c3572381af4e7e5fa22eeda6dd6856012fb1cf521d6806eb2dc74__eee9e0950d5de6bd0e6ebee65aaf68de/node_modules/tsup/assets/esm_shims.js
8
+ // ../../node_modules/.pnpm/tsup@8.4.0_patch_hash=751a554d775c3572381af4e7e5fa22eeda6dd6856012fb1cf521d6806eb2dc74__5124c89d5ddc703660a0f3c7db432ab1/node_modules/tsup/assets/esm_shims.js
9
9
  import { fileURLToPath } from "url";
10
10
  import path from "path";
11
11
  var getFilename = () => fileURLToPath(import.meta.url);
@@ -1,13 +1,13 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
2
2
 
3
3
 
4
- var _chunkI3D4CDB5js = require('./chunk-I3D4CDB5.js');
4
+ var _chunkZRM5UBCAjs = require('./chunk-ZRM5UBCA.js');
5
5
 
6
6
  // src/base/base-executor.ts
7
7
  var _path = require('path');
8
8
  var _shelljs = require('shelljs');
9
9
  var withPulumiExecutor = (command, argsMapper, executorOptions = {}) => async (_options, context) => {
10
- return _chunkI3D4CDB5js.withRunExecutor.call(void 0,
10
+ return _chunkZRM5UBCAjs.withRunExecutor.call(void 0,
11
11
  `Pulumi \`${command}\` Command Executor`,
12
12
  async (options, context2, config) => {
13
13
  if (!_shelljs.which.call(void 0, "pulumi")) {
@@ -21,7 +21,7 @@ var withPulumiExecutor = (command, argsMapper, executorOptions = {}) => async (_
21
21
  );
22
22
  }
23
23
  const { sourceRoot } = context2.projectsConfigurations.projects[context2.projectName];
24
- _chunkI3D4CDB5js.run.call(void 0,
24
+ _chunkZRM5UBCAjs.run.call(void 0,
25
25
  config,
26
26
  ["pulumi", command, ...argsMapper(options)].filter(Boolean).join(" "),
27
27
  _path.join.call(void 0, config.workspaceRoot, options.root || sourceRoot),
File without changes
@@ -1,9 +1,9 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunk3QQTCBVNjs = require('./chunk-3QQTCBVN.js');
3
+ var _chunkX6EJT62Tjs = require('./chunk-X6EJT62T.js');
4
4
 
5
5
  // src/executors/up/executor.ts
6
- var executor_default = _chunk3QQTCBVNjs.withPulumiExecutor.call(void 0, "up", (options) => [
6
+ var executor_default = _chunkX6EJT62Tjs.withPulumiExecutor.call(void 0, "up", (options) => [
7
7
  "--suppress-progress",
8
8
  options.stack && `--stack=${options.stack}`,
9
9
  options.skipPreview && "--skip-preview",