@digitraffic/common 2023.5.31-1 → 2023.5.31-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.
@@ -16,7 +16,7 @@ export interface DbConfiguration {
16
16
  readonly customParameterGroup: boolean;
17
17
  readonly securityGroupId: string;
18
18
  /** If this is not specified, import default vpc */
19
- readonly vpcId?: string;
19
+ readonly vpc?: IVpc;
20
20
  readonly proxy: {
21
21
  readonly name?: string;
22
22
  readonly securityGroupId: string;
@@ -83,10 +83,8 @@ class DbStack extends aws_cdk_lib_1.Stack {
83
83
  const instanceName = isc.environmentName + "-db";
84
84
  const securityGroup = aws_ec2_1.SecurityGroup.fromSecurityGroupId(this, "securitygroup", configuration.securityGroupId);
85
85
  const parameterGroup = this.createParamaterGroup(configuration);
86
- const vpc = configuration.vpcId
87
- ? aws_ec2_1.Vpc.fromLookup(this, "vpc", {
88
- vpcId: configuration.vpcId,
89
- })
86
+ const vpc = configuration.vpc
87
+ ? configuration.vpc
90
88
  : (0, import_util_1.importVpc)(this, isc.environmentName);
91
89
  const parameters = this.createClusterParameters(configuration, instanceName, vpc, securityGroup, parameterGroup);
92
90
  // create cluster from the snapshot or from the scratch
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digitraffic/common",
3
- "version": "2023.5.31-1",
3
+ "version": "2023.5.31-2",
4
4
  "description": "",
5
5
  "repository": {
6
6
  "type": "git",
@@ -26,7 +26,6 @@
26
26
  "constructs": "^10.2.17",
27
27
  "etag": "^1.8.1",
28
28
  "geojson-validation": "^1.0.2",
29
- "moment": "^2.29.4",
30
29
  "node-ttl": "^0.2.0",
31
30
  "pg-native": "^3.0.1",
32
31
  "pg-promise": "^11.0.0"
@@ -58,7 +57,6 @@
58
57
  "jest-junit": "^16.0.0",
59
58
  "lint-staged": "^13.2.2",
60
59
  "lodash": "^4.17.21",
61
- "moment": "^2.29.4",
62
60
  "node-ttl": "^0.2.0",
63
61
  "pg-native": "^3.0.1",
64
62
  "pg-promise": "^11.4.3",
@@ -37,7 +37,7 @@ export interface DbConfiguration {
37
37
  readonly customParameterGroup: boolean;
38
38
  readonly securityGroupId: string;
39
39
  /** If this is not specified, import default vpc */
40
- readonly vpcId?: string;
40
+ readonly vpc?: IVpc;
41
41
 
42
42
  readonly proxy: {
43
43
  readonly name?: string;
@@ -185,10 +185,8 @@ export class DbStack extends Stack {
185
185
  configuration.securityGroupId
186
186
  );
187
187
  const parameterGroup = this.createParamaterGroup(configuration);
188
- const vpc = configuration.vpcId
189
- ? Vpc.fromLookup(this, "vpc", {
190
- vpcId: configuration.vpcId,
191
- })
188
+ const vpc = configuration.vpc
189
+ ? configuration.vpc
192
190
  : importVpc(this, isc.environmentName);
193
191
 
194
192
  const parameters = this.createClusterParameters(