@gradientedge/cdk-utils 9.55.1 → 9.55.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.
|
@@ -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
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
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
|
@@ -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"
|
|
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.
|