@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) {
|