@gradientedge/cdk-utils-azure 2.1.0 → 2.3.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.
@@ -44,8 +44,8 @@ export class CommonAzureStack extends ComponentResource {
44
44
  return {
45
45
  ...props,
46
46
  extraContexts: this.config.getObject('extraContexts'),
47
- stage: this.config.require('stage'),
48
- stageContextPath: this.config.require('stageContextPath'),
47
+ stage: this.config.get('stage'),
48
+ stageContextPath: this.config.get('stageContextPath'),
49
49
  ...this.determineExtraContexts(),
50
50
  ...this.determineStageContexts(),
51
51
  };
@@ -88,10 +88,10 @@ export class CommonAzureStack extends ComponentResource {
88
88
  */
89
89
  determineStageContexts() {
90
90
  const debug = this.config.getBoolean('debug');
91
- const stage = this.config.require('stage');
91
+ const stage = this.config.get('stage');
92
92
  const stageContextPath = this.config.get('stageContextPath');
93
93
  const stageContextFilePath = path.join(appRoot.path, stageContextPath ?? 'env', `${stage}.json`);
94
- if (isDevStage(stage)) {
94
+ if (stage && isDevStage(stage)) {
95
95
  if (debug)
96
96
  console.debug(`Development stage. Using default stage context properties`);
97
97
  }
@@ -16,7 +16,7 @@ export interface SiteProps {
16
16
  /** @category Interface */
17
17
  export interface SiteWithWebAppProps extends CommonAzureStackProps {
18
18
  deploySource: string;
19
- nodeOptions: string;
19
+ nodeOptions?: string;
20
20
  nodeEnv?: string;
21
21
  packageName: string;
22
22
  site: SiteProps;
@@ -1,4 +1,4 @@
1
- import { Blob, BlobContainer, BlobServiceProperties, HttpProtocol, Kind, listStorageAccountSAS, ManagementPolicy, Permissions, Services, SignedResourceTypes, SkuName, StorageAccount, Table, } from '@pulumi/azure-native/storage/index.js';
1
+ import { Blob, BlobContainer, BlobServiceProperties, HttpProtocol, Kind, listStorageAccountSAS, ManagementPolicy, 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
@@ -82,6 +82,7 @@ export class AzureStorageManager {
82
82
  ...props,
83
83
  containerName: scope.resourceNameFormatter.format(props.containerName?.toString(), scope.props.resourceNameOptions?.storageContainer),
84
84
  accountName: props.accountName,
85
+ publicAccess: props.publicAccess ?? PublicAccess.None,
85
86
  resourceGroupName,
86
87
  }, { parent: scope, ...resourceOptions });
87
88
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gradientedge/cdk-utils-azure",
3
- "version": "2.1.0",
3
+ "version": "2.3.0",
4
4
  "description": "Azure Pulumi utilities for @gradientedge/cdk-utils",
5
5
  "type": "module",
6
6
  "main": "dist/src/index.js",