@gradientedge/cdk-utils 9.60.0 → 9.61.1

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.
@@ -114,25 +114,6 @@ class AzureFunctionManager {
114
114
  },
115
115
  });
116
116
  new cdktf_local_exec_1.Provider(scope, `${id}-local-exec-provider`);
117
- // Temporary workaround until https://github.com/hashicorp/terraform-provider-azurerm/pull/29023 is made available
118
- /*
119
- new LocalExec(scope, `${id}-function-app-always-ready`, {
120
- triggers: {
121
- alwaysReadyConfig:
122
- props.alwaysReadyConfig !== undefined
123
- ? `${props.alwaysReadyConfig[0].name.toString()}:${props.alwaysReadyConfig[0].instanceCount.toString()}`
124
- : 'undefined',
125
- },
126
- command: `
127
- ALWAYS_READY_CONFIG="${props.alwaysReadyConfig !== undefined ? props.alwaysReadyConfig.toString() : 'undefined'}"
128
- if [ "$ALWAYS_READY_CONFIG" = "undefined" ]; then
129
- az functionapp scale config always-ready delete --name "${functionApp.name}" --resource-group "${resourceGroup.name}" --setting-names "http"
130
- else
131
- az functionapp scale config always-ready set --name "${functionApp.name}" --resource-group "${resourceGroup.name}" --settings "${props.alwaysReadyConfig === undefined ? '' : props.alwaysReadyConfig[0].name}"="${props.alwaysReadyConfig === undefined ? '' : props.alwaysReadyConfig[0].instanceCount}"
132
- fi
133
- `,
134
- })
135
- */
136
117
  // Deploy function app zip package with up to 3 retry attempts.
137
118
  // This handles transient issues like HTTP 503s returned from the Azure Kudu deployment endpoint.
138
119
  new cdktf_local_exec_1.LocalExec(scope, `${id}-function-app-deploy`, {
@@ -8,9 +8,4 @@ export interface FunctionProps extends FunctionAppFunctionConfig {
8
8
  export interface FunctionAppFlexConsumptionProps extends FunctionAppFlexConsumptionConfig {
9
9
  sourceCodeHash: string;
10
10
  deploySource: string;
11
- alwaysReadyConfig?: AlwaysReadyConfigProps[];
12
- }
13
- export interface AlwaysReadyConfigProps {
14
- name: string;
15
- instanceCount: number;
16
11
  }
@@ -97,6 +97,7 @@ class AzureServicebusManager {
97
97
  duplicateDetectionHistoryTimeWindow: props.duplicateDetectionHistoryTimeWindow ?? 'PT1M',
98
98
  requiresDuplicateDetection: props.requiresDuplicateDetection ?? true,
99
99
  deadLetteringOnMessageExpiration: props.deadLetteringOnMessageExpiration ?? true,
100
+ defaultMessageTtl: props.defaultMessageTtl ?? 'PT48H',
100
101
  });
101
102
  (0, utils_1.createAzureTfOutput)(`${id}-servicebusQueueName`, scope, servicebusQueue.name);
102
103
  (0, utils_1.createAzureTfOutput)(`${id}-servicebusQueueFriendlyUniqueId`, scope, servicebusQueue.friendlyUniqueId);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gradientedge/cdk-utils",
3
- "version": "9.60.0",
3
+ "version": "9.61.1",
4
4
  "description": "Utilities for AWS CDK provisioning",
5
5
  "main": "dist/index.js",
6
6
  "engines": {
@@ -50,11 +50,11 @@
50
50
  }
51
51
  },
52
52
  "dependencies": {
53
- "@aws-sdk/client-secrets-manager": "^3.806.0",
54
- "@aws-sdk/credential-providers": "^3.806.0",
53
+ "@aws-sdk/client-secrets-manager": "^3.817.0",
54
+ "@aws-sdk/credential-providers": "^3.817.0",
55
55
  "@aws-sdk/types": "^3.804.0",
56
56
  "@cdktf/provider-aws": "^19.63.0",
57
- "@cdktf/provider-azurerm": "^13.27.0",
57
+ "@cdktf/provider-azurerm": "^13.29.0",
58
58
  "@cdktf/provider-cloudflare": "^12.4.0",
59
59
  "@types/lodash": "^4.17.16",
60
60
  "@types/node": "^22.15.17",
@@ -127,27 +127,6 @@ export class AzureFunctionManager {
127
127
  })
128
128
 
129
129
  new Provider(scope, `${id}-local-exec-provider`)
130
-
131
- // Temporary workaround until https://github.com/hashicorp/terraform-provider-azurerm/pull/29023 is made available
132
- /*
133
- new LocalExec(scope, `${id}-function-app-always-ready`, {
134
- triggers: {
135
- alwaysReadyConfig:
136
- props.alwaysReadyConfig !== undefined
137
- ? `${props.alwaysReadyConfig[0].name.toString()}:${props.alwaysReadyConfig[0].instanceCount.toString()}`
138
- : 'undefined',
139
- },
140
- command: `
141
- ALWAYS_READY_CONFIG="${props.alwaysReadyConfig !== undefined ? props.alwaysReadyConfig.toString() : 'undefined'}"
142
- if [ "$ALWAYS_READY_CONFIG" = "undefined" ]; then
143
- az functionapp scale config always-ready delete --name "${functionApp.name}" --resource-group "${resourceGroup.name}" --setting-names "http"
144
- else
145
- az functionapp scale config always-ready set --name "${functionApp.name}" --resource-group "${resourceGroup.name}" --settings "${props.alwaysReadyConfig === undefined ? '' : props.alwaysReadyConfig[0].name}"="${props.alwaysReadyConfig === undefined ? '' : props.alwaysReadyConfig[0].instanceCount}"
146
- fi
147
- `,
148
- })
149
- */
150
-
151
130
  // Deploy function app zip package with up to 3 retry attempts.
152
131
  // This handles transient issues like HTTP 503s returned from the Azure Kudu deployment endpoint.
153
132
  new LocalExec(scope, `${id}-function-app-deploy`, {
@@ -9,10 +9,4 @@ export interface FunctionProps extends FunctionAppFunctionConfig {}
9
9
  export interface FunctionAppFlexConsumptionProps extends FunctionAppFlexConsumptionConfig {
10
10
  sourceCodeHash: string
11
11
  deploySource: string
12
- alwaysReadyConfig?: AlwaysReadyConfigProps[]
13
- }
14
-
15
- export interface AlwaysReadyConfigProps {
16
- name: string
17
- instanceCount: number
18
12
  }
@@ -109,6 +109,7 @@ export class AzureServicebusManager {
109
109
  duplicateDetectionHistoryTimeWindow: props.duplicateDetectionHistoryTimeWindow ?? 'PT1M',
110
110
  requiresDuplicateDetection: props.requiresDuplicateDetection ?? true,
111
111
  deadLetteringOnMessageExpiration: props.deadLetteringOnMessageExpiration ?? true,
112
+ defaultMessageTtl: props.defaultMessageTtl ?? 'PT48H',
112
113
  })
113
114
 
114
115
  createAzureTfOutput(`${id}-servicebusQueueName`, scope, servicebusQueue.name)