Skip to content

Commit

Permalink
fix: Update CFN generation to prevent RDS recreation.
Browse files Browse the repository at this point in the history
  • Loading branch information
charles-marion committed Sep 25, 2024
1 parent 2ca05ba commit d4a4b9a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/rag-engines/aurora-pgvector/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ export class AuroraPgVector extends Construct {
version: rds.AuroraPostgresEngineVersion.VER_15_3,
}),
storageEncryptionKey: props.shared.kmsKey,
// Always setting it to true would be a breaking change.
storageEncrypted: props.shared.kmsKey ? true : false,
// Always setting it to true would be a breaking change. (Undefined to prevent re-creating)
storageEncrypted: props.shared.kmsKey ? true : undefined,
removalPolicy:
props.config.retainOnDelete === true
? cdk.RemovalPolicy.SNAPSHOT
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4974,7 +4974,6 @@ schema {
"MaxCapacity": 2,
"MinCapacity": 0.5,
},
"StorageEncrypted": false,
"VpcSecurityGroupIds": [
{
"Fn::GetAtt": [
Expand Down

0 comments on commit d4a4b9a

Please sign in to comment.