From 90beb63b756a1c3dc5985e81e6e6377f2921706c Mon Sep 17 00:00:00 2001 From: Steven Hoang Date: Thu, 18 Apr 2024 17:38:34 +0800 Subject: [PATCH] update ignore props --- src/MySql/index.ts | 10 ++++++++-- src/Postgresql/index.ts | 10 ++++++++-- 2 files changed, 16 insertions(+), 4 deletions(-) diff --git a/src/MySql/index.ts b/src/MySql/index.ts index 9e718f08..092c1918 100644 --- a/src/MySql/index.ts +++ b/src/MySql/index.ts @@ -142,12 +142,18 @@ export default ({ mode: isPrd ? "ZoneRedundant" : "Disabled", standbyAvailabilityZone: "3", }, - availabilityZone: "1", + availabilityZone: isPrd ? "3" : "1", }, { dependsOn, protect: lock, - ignoreChanges: ["serverName", "administratorLogin", "dataEncryption"], + ignoreChanges: [ + "serverName", + "highAvailability", + "availabilityZone", + "administratorLogin", + "dataEncryption", + ], }, ); diff --git a/src/Postgresql/index.ts b/src/Postgresql/index.ts index 6e854538..11147cc4 100644 --- a/src/Postgresql/index.ts +++ b/src/Postgresql/index.ts @@ -90,12 +90,18 @@ export default ({ backupRetentionDays: 7, }, highAvailability: { mode: isPrd ? "ZoneRedundant" : "Disabled" }, - //availabilityZone: isPrd ? 3 : 1, + availabilityZone: isPrd ? "3" : "1", }, { dependsOn, protect: lock, - ignoreChanges: ["serverName", "administratorLogin", "dataEncryption"], + ignoreChanges: [ + "serverName", + "highAvailability", + "availabilityZone", + "administratorLogin", + "dataEncryption", + ], }, );