@gradientedge/cdk-utils 10.3.0 → 10.5.0

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/README.md CHANGED
@@ -10,8 +10,10 @@
10
10
 
11
11
  [![AWS CLI][aws-cli-badge]][aws-cli-url]
12
12
  [![Node][node-badge]][node-url]
13
- [![Yarn][yarn-badge]][yarn-url]
14
13
  [![CDK][cdk-badge]][cdk-url]
14
+ [![Pulumi][pulumi-badge]][pulumi-url]
15
+ [![Pulumi Azure][pulumi-azure-badge]][pulumi-azure-url]
16
+ [![Pulumi Cloudflare][pulumi-cloudflare-badge]][pulumi-cloudflare-url]
15
17
 
16
18
  [![Builds][builds]][builds-url]
17
19
  [![Coverage][coverage]][codecov-url]
@@ -25,7 +27,7 @@
25
27
 
26
28
  ## Introduction
27
29
 
28
- Toolkit for working with CDK Constructs ([AWS CDK][aws-cdk] & [CDK for Terraform][cdktf]).
30
+ Toolkit for working with CDK Constructs ([AWS CDK][aws-cdk] & [Pulumi][pulumi]).
29
31
 
30
32
  For more details, see the full [API documentation](https://gradientedge.github.io/cdk-utils/).
31
33
 
@@ -39,12 +41,6 @@ With **npm**:
39
41
  npm install --save @gradientedge/cdk-utils
40
42
  ```
41
43
 
42
- With **yarn**:
43
-
44
- ```shell
45
- yarn add @gradientedge/cdk-utils
46
- ```
47
-
48
44
  With **pnpm**:
49
45
 
50
46
  ```shell
@@ -87,7 +83,7 @@ There is a debug utility that can be used to print out the contents of a `templa
87
83
  [builds]: https://img.shields.io/github/actions/workflow/status/gradientedge/cdk-utils/ci.yml?branch=main
88
84
  [builds-url]: https://github.com/gradientedge/cdk-utils/actions
89
85
  [cdk-badge]: https://img.shields.io/github/package-json/dependency-version/gradientedge/cdk-utils/aws-cdk-lib
90
- [cdktf]: https://developer.hashicorp.com/terraform/cdktf
86
+ [pulumi]: https://www.pulumi.com/docs/
91
87
  [cdk-url]: https://aws.amazon.com/cdk/
92
88
  [checks]: https://img.shields.io/github/checks-status/gradientedge/cdk-utils/main
93
89
  [cmd]: https://img.shields.io/badge/command--line-4D4D4D?logo=windows-terminal&style=for-the-badge
@@ -103,6 +99,12 @@ There is a debug utility that can be used to print out the contents of a `templa
103
99
  [issues-url]: https://github.com/gradientedge/cdk-utils/issues
104
100
  [pr]: https://img.shields.io/github/issues-pr/gradientedge/cdk-utils.svg
105
101
  [pr-url]: https://github.com/gradientedge/cdk-utils/pulls
102
+ [pulumi-badge]: https://img.shields.io/github/package-json/dependency-version/gradientedge/cdk-utils/@pulumi/pulumi
103
+ [pulumi-azure-badge]: https://img.shields.io/github/package-json/dependency-version/gradientedge/cdk-utils/@pulumi/azure-native
104
+ [pulumi-cloudflare-badge]: https://img.shields.io/github/package-json/dependency-version/gradientedge/cdk-utils/@pulumi/cloudflare
105
+ [pulumi-url]: https://www.pulumi.com/
106
+ [pulumi-azure-url]: https://www.pulumi.com/registry/packages/azure-native/
107
+ [pulumi-cloudflare-url]: https://www.pulumi.com/registry/packages/cloudflare/
106
108
  [last-commit]: https://img.shields.io/github/last-commit/gradientedge/cdk-utils
107
109
  [license]: https://img.shields.io/github/license/gradientedge/cdk-utils
108
110
  [license-url]: https://github.com/gradientedge/cdk-utils/blob/main/LICENSE
@@ -118,5 +120,3 @@ There is a debug utility that can be used to print out the contents of a `templa
118
120
  [twitter-url]: https://twitter.com/gradientedge
119
121
  [version]: https://img.shields.io/npm/v/@gradientedge/cdk-utils
120
122
  [version-url]: https://www.npmjs.com/package/@gradientedge/cdk-utils
121
- [yarn-badge]: https://img.shields.io/badge/yarn-1.22.10-green?logo=yarn
122
- [yarn-url]: https://yarnpkg.com
@@ -1,4 +1,3 @@
1
1
  export * from './common/index.js';
2
2
  export * from './services/index.js';
3
3
  export * from './types/index.js';
4
- export * from './utils/index.js';
@@ -1,4 +1,3 @@
1
1
  export * from './common/index.js';
2
2
  export * from './services/index.js';
3
3
  export * from './types/index.js';
4
- export * from './utils/index.js';
@@ -1,4 +1,3 @@
1
- import * as azure from '@pulumi/azure';
2
1
  import { Blob, BlobContainer, HttpProtocol, Kind, listStorageAccountSAS, Permissions, Services, SignedResourceTypes, SkuName, StorageAccount, } from '@pulumi/azure-native/storage/index.js';
3
2
  import * as pulumi from '@pulumi/pulumi';
4
3
  /**
@@ -79,13 +78,6 @@ export class AzureStorageManager {
79
78
  createStorageBlob(id, scope, props) {
80
79
  if (!props)
81
80
  throw `Props undefined for ${id}`;
82
- const resourceGroup = azure.core.getResourceGroupOutput({
83
- name: scope.props.resourceGroupName
84
- ? scope.resourceNameFormatter.format(scope.props.resourceGroupName)
85
- : `${props.resourceGroupName}`,
86
- });
87
- if (!resourceGroup)
88
- throw `Resource group undefined for ${id}`;
89
81
  const resourceGroupName = scope.props.resourceGroupName
90
82
  ? scope.resourceNameFormatter.format(scope.props.resourceGroupName)
91
83
  : `${props.resourceGroupName}`;
@@ -3,15 +3,15 @@ import { BaseProps } from './types.js';
3
3
  export declare abstract class BaseStack extends Construct {
4
4
  props: BaseProps;
5
5
  /**
6
- * @summary Method to determine the core CDK construct properties injected via context cdktf.json
6
+ * @summary Method to determine the core CDK construct properties injected via context json
7
7
  */
8
8
  protected abstract determineConstructProps(props: BaseProps): void;
9
9
  /**
10
- * @summary Method to determine extra cdk contexts apart from the main cdktf.json
10
+ * @summary Method to determine extra cdk contexts apart from the main json
11
11
  */
12
12
  abstract determineExtraContexts(): void;
13
13
  /**
14
- * @summary Method to determine extra cdk stage contexts apart from the main cdktf.json
14
+ * @summary Method to determine extra cdk stage contexts apart from the main json
15
15
  */
16
16
  abstract determineStageContexts(): void;
17
17
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gradientedge/cdk-utils",
3
- "version": "10.3.0",
3
+ "version": "10.5.0",
4
4
  "description": "Utilities for AWS CDK provisioning",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -27,7 +27,7 @@
27
27
  "keywords": [
28
28
  "gradientedge",
29
29
  "cdk",
30
- "cdktf",
30
+ "pulumi",
31
31
  "awscdk"
32
32
  ],
33
33
  "license": "MIT",
@@ -55,26 +55,19 @@
55
55
  "prepare": "husky"
56
56
  },
57
57
  "dependencies": {
58
- "@aws-sdk/client-secrets-manager": "^3.975.0",
59
- "@aws-sdk/credential-providers": "^3.975.0",
58
+ "@aws-sdk/client-secrets-manager": "^3.978.0",
59
+ "@aws-sdk/credential-providers": "^3.978.0",
60
60
  "@aws-sdk/types": "^3.973.1",
61
- "@cdktf/provider-aws": "^21.22.1",
62
- "@cdktf/provider-azurerm": "^14.23.1",
63
- "@cdktf/provider-cloudflare": "^13.9.1",
64
61
  "@pulumi/aws": "^7.16.0",
65
- "@pulumi/azure": "^6.31.0",
66
- "@pulumi/azure-native": "^3.12.1",
62
+ "@pulumi/azure-native": "^3.13.0",
67
63
  "@pulumi/cloudflare": "^6.13.0",
68
64
  "@pulumi/command": "^1.1.3",
69
- "@pulumi/pulumi": "^3.217.1",
65
+ "@pulumi/pulumi": "^3.218.0",
70
66
  "@pulumi/std": "^2.2.0",
71
67
  "@types/lodash": "^4.17.23",
72
- "@types/node": "^25.0.10",
73
- "@types/uuid": "^11.0.0",
68
+ "@types/node": "^25.1.0",
74
69
  "app-root-path": "^3.1.0",
75
70
  "aws-cdk-lib": "^2.236.0",
76
- "cdktf": "^0.21.0",
77
- "cdktf-local-exec": "^0.6.28",
78
71
  "constructs": "^10.4.5",
79
72
  "lodash": "^4.17.23",
80
73
  "moment": "^2.30.1",
@@ -86,16 +79,14 @@
86
79
  "devDependencies": {
87
80
  "@babel/core": "^7.28.6",
88
81
  "@babel/eslint-parser": "^7.28.6",
89
- "@babel/plugin-proposal-class-properties": "^7.18.6",
90
82
  "@eslint/config-array": "^0.23.0",
91
83
  "@eslint/object-schema": "^3.0.0",
92
- "@types/node": "^25.0.10",
84
+ "@types/node": "^25.1.0",
93
85
  "@typescript-eslint/eslint-plugin": "^8.54.0",
94
86
  "@typescript-eslint/parser": "^8.54.0",
95
87
  "@vitest/coverage-v8": "^4.0.18",
96
- "aws-cdk": "^2.1103.0",
88
+ "aws-cdk": "^2.1104.0",
97
89
  "better-docs": "^2.7.3",
98
- "codecov": "^3.8.3",
99
90
  "commitizen": "^4.3.1",
100
91
  "docdash": "^2.0.2",
101
92
  "dotenv": "^17.2.3",
@@ -103,7 +94,7 @@
103
94
  "eslint": "^9.39.2",
104
95
  "eslint-config-prettier": "^10.1.8",
105
96
  "eslint-plugin-import": "^2.32.0",
106
- "eslint-plugin-jsdoc": "^62.4.1",
97
+ "eslint-plugin-jsdoc": "^62.5.0",
107
98
  "husky": "^9.1.7",
108
99
  "jsdoc": "^4.0.5",
109
100
  "jsdoc-babel": "^0.5.0",
@@ -1,4 +1,3 @@
1
1
  export * from './common/index.js'
2
2
  export * from './services/index.js'
3
3
  export * from './types/index.js'
4
- export * from './utils/index.js'
@@ -1,4 +1,3 @@
1
- import * as azure from '@pulumi/azure'
2
1
  import {
3
2
  Blob,
4
3
  BlobContainer,
@@ -108,14 +107,6 @@ export class AzureStorageManager {
108
107
  public createStorageBlob(id: string, scope: CommonAzureConstruct, props: StorageBlobProps) {
109
108
  if (!props) throw `Props undefined for ${id}`
110
109
 
111
- const resourceGroup = azure.core.getResourceGroupOutput({
112
- name: scope.props.resourceGroupName
113
- ? scope.resourceNameFormatter.format(scope.props.resourceGroupName)
114
- : `${props.resourceGroupName}`,
115
- })
116
-
117
- if (!resourceGroup) throw `Resource group undefined for ${id}`
118
-
119
110
  const resourceGroupName = scope.props.resourceGroupName
120
111
  ? scope.resourceNameFormatter.format(scope.props.resourceGroupName)
121
112
  : `${props.resourceGroupName}`
@@ -5,17 +5,17 @@ export abstract class BaseStack extends Construct {
5
5
  props: BaseProps
6
6
 
7
7
  /**
8
- * @summary Method to determine the core CDK construct properties injected via context cdktf.json
8
+ * @summary Method to determine the core CDK construct properties injected via context json
9
9
  */
10
10
  protected abstract determineConstructProps(props: BaseProps): void
11
11
 
12
12
  /**
13
- * @summary Method to determine extra cdk contexts apart from the main cdktf.json
13
+ * @summary Method to determine extra cdk contexts apart from the main json
14
14
  */
15
15
  public abstract determineExtraContexts(): void
16
16
 
17
17
  /**
18
- * @summary Method to determine extra cdk stage contexts apart from the main cdktf.json
18
+ * @summary Method to determine extra cdk stage contexts apart from the main json
19
19
  */
20
20
  public abstract determineStageContexts(): void
21
21
 
package/vitest.config.ts CHANGED
@@ -4,7 +4,6 @@ export default defineConfig({
4
4
  test: {
5
5
  globals: true,
6
6
  environment: 'node',
7
- setupFiles: ['./setup.js'],
8
7
  include: ['**/?(*.)+(spec|test).[t]s?(x)'],
9
8
  coverage: {
10
9
  provider: 'v8',
@@ -1,19 +0,0 @@
1
- /**
2
- * @fileoverview Azure utility functions for Pulumi
3
- *
4
- * Note: Pulumi automatically exposes resource properties as outputs.
5
- * Unlike CDKTF, explicit output creation is not required.
6
- * Resource properties are already pulumi.Output<T> types and can be
7
- * exported directly or used with .apply() for transformations.
8
- *
9
- * @example
10
- * ```typescript
11
- * // In CDKTF (old):
12
- * createAzureTfOutput('resourceGroupName', scope, resourceGroup.name)
13
- *
14
- * // In Pulumi (new):
15
- * // No explicit output creation needed - resourceGroup.name is already an output
16
- * export const resourceGroupName = resourceGroup.name
17
- * ```
18
- */
19
- export {};
@@ -1,19 +0,0 @@
1
- /**
2
- * @fileoverview Azure utility functions for Pulumi
3
- *
4
- * Note: Pulumi automatically exposes resource properties as outputs.
5
- * Unlike CDKTF, explicit output creation is not required.
6
- * Resource properties are already pulumi.Output<T> types and can be
7
- * exported directly or used with .apply() for transformations.
8
- *
9
- * @example
10
- * ```typescript
11
- * // In CDKTF (old):
12
- * createAzureTfOutput('resourceGroupName', scope, resourceGroup.name)
13
- *
14
- * // In Pulumi (new):
15
- * // No explicit output creation needed - resourceGroup.name is already an output
16
- * export const resourceGroupName = resourceGroup.name
17
- * ```
18
- */
19
- export {};
package/setup.js DELETED
@@ -1,3 +0,0 @@
1
- // CDKTF Testing setup for Vitest
2
- const { Testing } = require('cdktf')
3
- Testing.setupJest()
@@ -1,21 +0,0 @@
1
- /**
2
- * @fileoverview Azure utility functions for Pulumi
3
- *
4
- * Note: Pulumi automatically exposes resource properties as outputs.
5
- * Unlike CDKTF, explicit output creation is not required.
6
- * Resource properties are already pulumi.Output<T> types and can be
7
- * exported directly or used with .apply() for transformations.
8
- *
9
- * @example
10
- * ```typescript
11
- * // In CDKTF (old):
12
- * createAzureTfOutput('resourceGroupName', scope, resourceGroup.name)
13
- *
14
- * // In Pulumi (new):
15
- * // No explicit output creation needed - resourceGroup.name is already an output
16
- * export const resourceGroupName = resourceGroup.name
17
- * ```
18
- */
19
-
20
- // Utility functions can be added here as needed for Pulumi Azure operations
21
- export {}