@gradientedge/cdk-utils-azure 2.44.0 → 2.45.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.
package/dist/src/common/stack.js
CHANGED
|
@@ -22,7 +22,7 @@ import { registerTagTransformation } from './tagging.js';
|
|
|
22
22
|
*/
|
|
23
23
|
export class CommonAzureStack extends ComponentResource {
|
|
24
24
|
/** Default Node.js runtime version for Azure Function Apps */
|
|
25
|
-
static NODEJS_RUNTIME = '
|
|
25
|
+
static NODEJS_RUNTIME = '24';
|
|
26
26
|
/** The construct instance created by this stack */
|
|
27
27
|
construct;
|
|
28
28
|
/** Stack properties including environment-specific configuration */
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import { BaseProps } from '@gradientedge/cdk-utils-common';
|
|
1
2
|
import { GetComponentOutputArgs } from '@pulumi/azure-native/applicationinsights/index.js';
|
|
2
3
|
import { GetWorkspaceOutputArgs } from '@pulumi/azure-native/operationalinsights/index.js';
|
|
3
|
-
import {
|
|
4
|
+
import { Input } from '@pulumi/pulumi';
|
|
4
5
|
import { AzureLocation, AzureRemoteBackend } from './constants.js';
|
|
5
6
|
/**
|
|
6
7
|
* Configuration for an Azure location/region
|
|
@@ -21,6 +22,8 @@ export interface AzureLocationConfig {
|
|
|
21
22
|
* @category Interface
|
|
22
23
|
*/
|
|
23
24
|
export interface CommonAzureStackProps extends BaseProps {
|
|
25
|
+
/** Optional runtime versions for node functions */
|
|
26
|
+
runtimeVersion?: Input<string>;
|
|
24
27
|
/** Optional Pulumi stack name for cross-stack references */
|
|
25
28
|
stackName?: string;
|
|
26
29
|
/** Optional Azure resource group name override */
|
|
@@ -96,7 +96,7 @@ export class AzureFunctionManager {
|
|
|
96
96
|
const runtime = {
|
|
97
97
|
...props.runtime,
|
|
98
98
|
name: props.runtime?.name ?? 'node',
|
|
99
|
-
version: props.runtime?.version ?? CommonAzureStack.NODEJS_RUNTIME,
|
|
99
|
+
version: props.runtime?.version ?? scope.props.runtimeVersion ?? CommonAzureStack.NODEJS_RUNTIME,
|
|
100
100
|
};
|
|
101
101
|
const scaleAndConcurrency = {
|
|
102
102
|
...props.scaleAndConcurrency,
|
|
@@ -130,7 +130,7 @@ export class AzureFunctionManager {
|
|
|
130
130
|
},
|
|
131
131
|
siteConfig: props.siteConfig ?? {
|
|
132
132
|
http20Enabled: true,
|
|
133
|
-
linuxFxVersion: `${props.runtime?.name ?? 'node'}|${props.runtime?.version ?? CommonAzureStack.NODEJS_RUNTIME}`,
|
|
133
|
+
linuxFxVersion: `${props.runtime?.name ?? 'node'}|${props.runtime?.version ?? scope.props.runtimeVersion ?? CommonAzureStack.NODEJS_RUNTIME}`,
|
|
134
134
|
},
|
|
135
135
|
tags: tags,
|
|
136
136
|
}, { parent: scope, ...resourceOptions });
|
|
@@ -198,7 +198,7 @@ export class AzureFunctionManager {
|
|
|
198
198
|
runtime: {
|
|
199
199
|
...props.runtime,
|
|
200
200
|
name: props.runtime?.name ?? 'node',
|
|
201
|
-
version: props.runtime?.version ?? CommonAzureStack.NODEJS_RUNTIME,
|
|
201
|
+
version: props.runtime?.version ?? scope.props.runtimeVersion ?? CommonAzureStack.NODEJS_RUNTIME,
|
|
202
202
|
},
|
|
203
203
|
scaleAndConcurrency: {
|
|
204
204
|
...props.scaleAndConcurrency,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Blob, BlobContainer, BlobServiceProperties, HttpProtocol, Kind, listStorageAccountSAS, ManagementPolicy, Permissions, PublicAccess, Services, SignedResourceTypes, SkuName, StorageAccount, Table, } from '@pulumi/azure-native/storage/index.js';
|
|
1
|
+
import { Blob, BlobContainer, BlobServiceProperties, HttpProtocol, Kind, listStorageAccountSAS, ManagementPolicy, MinimumTlsVersion, Permissions, PublicAccess, Services, SignedResourceTypes, SkuName, StorageAccount, Table, } from '@pulumi/azure-native/storage/index.js';
|
|
2
2
|
import * as pulumi from '@pulumi/pulumi';
|
|
3
3
|
/**
|
|
4
4
|
* Provides operations on Azure Storage using Pulumi
|
|
@@ -39,6 +39,7 @@ export class AzureStorageManager {
|
|
|
39
39
|
.toLowerCase(),
|
|
40
40
|
allowBlobPublicAccess: props.allowBlobPublicAccess ?? false,
|
|
41
41
|
isHnsEnabled: props.isHnsEnabled ?? false,
|
|
42
|
+
minimumTlsVersion: props.minimumTlsVersion ?? MinimumTlsVersion.TLS1_2,
|
|
42
43
|
resourceGroupName,
|
|
43
44
|
sku: props.sku ?? {
|
|
44
45
|
name: SkuName.Standard_LRS,
|
|
@@ -136,8 +137,8 @@ export class AzureStorageManager {
|
|
|
136
137
|
sharedAccessStartTime: props.start ?? new Date().toISOString().split('T')[0],
|
|
137
138
|
sharedAccessExpiryTime: props.expiry ?? new Date(Date.now() + 7 * 24 * 60 * 60 * 1000).toISOString().split('T')[0],
|
|
138
139
|
permissions: props.permissions ?? Permissions.R,
|
|
139
|
-
services: Services.B,
|
|
140
|
-
resourceTypes: SignedResourceTypes.
|
|
140
|
+
services: props.services ?? Services.B,
|
|
141
|
+
resourceTypes: props.resourceTypes ?? SignedResourceTypes.O,
|
|
141
142
|
});
|
|
142
143
|
})
|
|
143
144
|
.apply(result => result.accountSasToken);
|