@digitraffic/common 2025.1.17-1 → 2025.1.29-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.
@@ -23,6 +23,7 @@ export interface ClusterConfiguration {
23
23
  readonly securityGroupId: string;
24
24
  readonly snapshotIdentifier?: string;
25
25
  readonly dbVersion: AuroraPostgresEngineVersion;
26
+ readonly storageEncrypted?: boolean;
26
27
  readonly writer: ClusterDbInstanceConfiguration;
27
28
  readonly readers: ClusterDbInstanceConfiguration[];
28
29
  }
@@ -40,8 +40,6 @@ export class DbStack extends Stack {
40
40
  this.clusterIdentifier = cluster.clusterIdentifier;
41
41
  }
42
42
  if (configuration.clusterImport) {
43
- createParameter(this, "cluster.reader", configuration.clusterImport.clusterReadEndpoint);
44
- createParameter(this, "cluster.writer", configuration.clusterImport.clusterWriteEndpoint);
45
43
  // If clusterIdentifier is provided we use it and otherwise we try to parse it from
46
44
  // from clusterWriteEndpoint name that is normally formed stackenv-stackenvxxx-xxx.cluster-xxx.region.rds.amazonaws.com
47
45
  // and part before .cluster is clusterIdentifier.
@@ -60,6 +58,9 @@ export class DbStack extends Stack {
60
58
  " Either 'configuration.clusterImport.clusterReadEndpoint' didn't contain '.cluster' or " +
61
59
  "configuration.clusterImport.clusterIdentifier was not defined to override default value.");
62
60
  }
61
+ createParameter(this, "cluster.reader", configuration.clusterImport.clusterReadEndpoint);
62
+ createParameter(this, "cluster.writer", configuration.clusterImport.clusterWriteEndpoint);
63
+ createParameter(this, "cluster.identifier", this.clusterIdentifier);
63
64
  }
64
65
  }
65
66
  createParameterGroups(customVersions, workmem) {
@@ -127,6 +128,7 @@ export class DbStack extends Stack {
127
128
  credentials: Credentials.fromPassword(secret.secretValueFromJson("db.superuser").unsafeUnwrap(), secret.secretValueFromJson("db.superuser.password")),
128
129
  parameterGroup,
129
130
  monitoringInterval: Duration.seconds(30),
131
+ storageEncrypted: clusterConfiguration.storageEncrypted ?? true
130
132
  };
131
133
  }
132
134
  createAuroraCluster(isc, configuration, clusterConfiguration, parameterGroups) {
@@ -3,6 +3,7 @@ export declare enum TrafficType {
3
3
  MARINE = "Marine",
4
4
  RAIL = "Rail",
5
5
  AVIATION = "Aviation",
6
+ AFIR = "Afir",
6
7
  MCP = "MCP",
7
8
  OTHER = "Other"
8
9
  }
@@ -4,6 +4,7 @@ export var TrafficType;
4
4
  TrafficType["MARINE"] = "Marine";
5
5
  TrafficType["RAIL"] = "Rail";
6
6
  TrafficType["AVIATION"] = "Aviation";
7
+ TrafficType["AFIR"] = "Afir";
7
8
  TrafficType["MCP"] = "MCP";
8
9
  TrafficType["OTHER"] = "Other";
9
10
  })(TrafficType || (TrafficType = {}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digitraffic/common",
3
- "version": "2025.1.17-1",
3
+ "version": "2025.01.29-1",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "repository": {