@gradientedge/cdk-utils-azure 2.43.0 → 2.44.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.
|
@@ -48,7 +48,11 @@ export class AzureFunctionManager {
|
|
|
48
48
|
...scope.props.defaultTags,
|
|
49
49
|
...props.tags,
|
|
50
50
|
},
|
|
51
|
-
}, {
|
|
51
|
+
}, {
|
|
52
|
+
parent: scope,
|
|
53
|
+
...resourceOptions,
|
|
54
|
+
ignoreChanges: [...(resourceOptions?.ignoreChanges ?? []), 'tags'],
|
|
55
|
+
});
|
|
52
56
|
}
|
|
53
57
|
/**
|
|
54
58
|
* @summary Method to create a new function within a function app
|
|
@@ -99,6 +103,11 @@ export class AzureFunctionManager {
|
|
|
99
103
|
instanceMemoryMB: props.scaleAndConcurrency?.instanceMemoryMB ?? 4096,
|
|
100
104
|
maximumInstanceCount: props.scaleAndConcurrency?.maximumInstanceCount ?? 40,
|
|
101
105
|
};
|
|
106
|
+
const tags = {
|
|
107
|
+
environment: scope.props.stage,
|
|
108
|
+
...scope.props.defaultTags,
|
|
109
|
+
...props.tags,
|
|
110
|
+
};
|
|
102
111
|
const functionApp = new WebApp(`${id}-fc`, {
|
|
103
112
|
...props,
|
|
104
113
|
name,
|
|
@@ -123,11 +132,7 @@ export class AzureFunctionManager {
|
|
|
123
132
|
http20Enabled: true,
|
|
124
133
|
linuxFxVersion: `${props.runtime?.name ?? 'node'}|${props.runtime?.version ?? CommonAzureStack.NODEJS_RUNTIME}`,
|
|
125
134
|
},
|
|
126
|
-
tags:
|
|
127
|
-
environment: scope.props.stage,
|
|
128
|
-
...scope.props.defaultTags,
|
|
129
|
-
...props.tags,
|
|
130
|
-
},
|
|
135
|
+
tags: tags,
|
|
131
136
|
}, { parent: scope, ...resourceOptions });
|
|
132
137
|
// perform a deployment for the rolling update strategy
|
|
133
138
|
const deploymentId = uuidv5(`${id}-depl`, uuidv5.DNS);
|
|
@@ -145,6 +150,7 @@ export class AzureFunctionManager {
|
|
|
145
150
|
apiVersion: '2024-04-01',
|
|
146
151
|
name,
|
|
147
152
|
location,
|
|
153
|
+
tags,
|
|
148
154
|
properties: {
|
|
149
155
|
functionAppConfig: {
|
|
150
156
|
...props.functionAppConfig,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gradientedge/cdk-utils-azure",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.44.0",
|
|
4
4
|
"description": "Azure Pulumi utilities for @gradientedge/cdk-utils",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/src/index.js",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"lodash": "4.18.1",
|
|
24
24
|
"uuid": "14.0.0",
|
|
25
25
|
"yaml": "2.9.0",
|
|
26
|
-
"@gradientedge/cdk-utils-common": "2.
|
|
26
|
+
"@gradientedge/cdk-utils-common": "2.9.0"
|
|
27
27
|
},
|
|
28
28
|
"keywords": [
|
|
29
29
|
"gradientedge",
|