@aligent/nx-cdk 0.8.0 → 0.8.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aligent/nx-cdk",
3
- "version": "0.8.0",
3
+ "version": "0.8.1",
4
4
  "type": "commonjs",
5
5
  "main": "./src/index.js",
6
6
  "typings": "./src/index.d.ts",
@@ -12,6 +12,7 @@ jobs:
12
12
  with:
13
13
  deploy: true
14
14
  deploy-command: yarn nx run application:cdk deploy
15
+ stack-name: prd/*
15
16
  environment-target: prd
16
17
  github-environment: production
17
18
  secrets: inherit
@@ -12,6 +12,7 @@ jobs:
12
12
  with:
13
13
  deploy: true
14
14
  deploy-command: yarn nx run application:cdk deploy
15
+ stack-name: stg/*
15
16
  environment-target: stg
16
17
  github-environment: staging
17
18
  secrets: inherit
@@ -14,7 +14,13 @@ import type { Construct } from 'constructs';
14
14
  */
15
15
  export class ApplicationStage extends Stage {
16
16
  constructor(scope: Construct, id: string, props?: StageProps) {
17
- super(scope, id, props);
17
+ super(scope, id, {
18
+ ...props,
19
+ env: {
20
+ account: process.env.CDK_DEFAULT_ACCOUNT,
21
+ region: process.env.CDK_DEFAULT_REGION || 'ap-southeast-2',
22
+ },
23
+ });
18
24
 
19
25
  const sharedInfra = new SharedInfraStack(this, 'shared-infra', props);
20
26