@gradientedge/cdk-utils 9.55.1 → 9.55.3

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.
@@ -97,7 +97,7 @@ class AzureFunctionManager {
97
97
  location: resourceGroup.location,
98
98
  resourceGroupName: resourceGroup.name,
99
99
  runtimeName: props.runtimeName ?? 'node',
100
- runtimeVersion: props.runtimeVersion ?? '20',
100
+ runtimeVersion: props.runtimeVersion ?? '22',
101
101
  storageAuthenticationType: props.storageAuthenticationType ?? 'StorageAccountConnectionString',
102
102
  storageContainerType: props.storageContainerType ?? 'blobContainer',
103
103
  maximumInstanceCount: props.maximumInstanceCount ?? 40,
@@ -115,21 +115,24 @@ class AzureFunctionManager {
115
115
  });
116
116
  new cdktf_local_exec_1.Provider(scope, `${id}-local-exec-provider`);
117
117
  // Temporary workaround until https://github.com/hashicorp/terraform-provider-azurerm/pull/29023 is made available
118
- new cdktf_local_exec_1.LocalExec(scope, `${id}-function-app-always-ready`, {
119
- triggers: {
120
- alwaysReadyConfig: props.alwaysReadyConfig !== undefined
121
- ? `${props.alwaysReadyConfig[0].name.toString()}:${props.alwaysReadyConfig[0].instanceCount.toString()}`
122
- : 'undefined',
123
- },
124
- command: `
125
- ALWAYS_READY_CONFIG="${props.alwaysReadyConfig !== undefined ? props.alwaysReadyConfig.toString() : 'undefined'}"
126
- if [ "$ALWAYS_READY_CONFIG" == "undefined" ]; then
127
- az functionapp scale config always-ready delete --name "${functionApp.name}" --resource-group "${resourceGroup.name}" --setting-names "http"
128
- else
129
- 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}"
130
- fi
131
- `,
132
- });
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
+ */
133
136
  // Deploy function app zip package with up to 3 retry attempts.
134
137
  // This handles transient issues like HTTP 503s returned from the Azure Kudu deployment endpoint.
135
138
  new cdktf_local_exec_1.LocalExec(scope, `${id}-function-app-deploy`, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gradientedge/cdk-utils",
3
- "version": "9.55.1",
3
+ "version": "9.55.3",
4
4
  "description": "Utilities for AWS CDK provisioning",
5
5
  "main": "dist/index.js",
6
6
  "engines": {
@@ -61,7 +61,7 @@
61
61
  "@types/uuid": "^10.0.0",
62
62
  "app-root-path": "^3.1.0",
63
63
  "aws-cdk-lib": "^2.185.0",
64
- "cdktf": "^0.20.11",
64
+ "cdktf": "^0.20.12",
65
65
  "cdktf-local-exec": "^0.5.61",
66
66
  "constructs": "^10.4.2",
67
67
  "lodash": "^4.17.21",
@@ -109,7 +109,7 @@ export class AzureFunctionManager {
109
109
  location: resourceGroup.location,
110
110
  resourceGroupName: resourceGroup.name,
111
111
  runtimeName: props.runtimeName ?? 'node',
112
- runtimeVersion: props.runtimeVersion ?? '20',
112
+ runtimeVersion: props.runtimeVersion ?? '22',
113
113
  storageAuthenticationType: props.storageAuthenticationType ?? 'StorageAccountConnectionString',
114
114
  storageContainerType: props.storageContainerType ?? 'blobContainer',
115
115
  maximumInstanceCount: props.maximumInstanceCount ?? 40,
@@ -129,6 +129,7 @@ export class AzureFunctionManager {
129
129
  new Provider(scope, `${id}-local-exec-provider`)
130
130
 
131
131
  // Temporary workaround until https://github.com/hashicorp/terraform-provider-azurerm/pull/29023 is made available
132
+ /*
132
133
  new LocalExec(scope, `${id}-function-app-always-ready`, {
133
134
  triggers: {
134
135
  alwaysReadyConfig:
@@ -138,13 +139,14 @@ export class AzureFunctionManager {
138
139
  },
139
140
  command: `
140
141
  ALWAYS_READY_CONFIG="${props.alwaysReadyConfig !== undefined ? props.alwaysReadyConfig.toString() : 'undefined'}"
141
- if [ "$ALWAYS_READY_CONFIG" == "undefined" ]; then
142
+ if [ "$ALWAYS_READY_CONFIG" = "undefined" ]; then
142
143
  az functionapp scale config always-ready delete --name "${functionApp.name}" --resource-group "${resourceGroup.name}" --setting-names "http"
143
144
  else
144
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}"
145
146
  fi
146
147
  `,
147
148
  })
149
+ */
148
150
 
149
151
  // Deploy function app zip package with up to 3 retry attempts.
150
152
  // This handles transient issues like HTTP 503s returned from the Azure Kudu deployment endpoint.