mirror of
https://github.com/floci-io/floci.git
synced 2026-11-23 06:00:46 -05:00
* fix(docdb): store and return cluster and instance settings CreateDBCluster and ModifyDBCluster dropped DBSubnetGroupName, DBClusterParameterGroupName, VpcSecurityGroupIds, StorageEncrypted, KmsKeyId, BackupRetentionPeriod, both windows, DeletionProtection and tags; instances dropped AutoMinorVersionUpgrade, PreferredMaintenanceWindow, CopyTagsToSnapshot and PromotionTier. Describe now returns what was given, or the defaults a live account assigns, and refuses what a live account refuses before any container is started: an unknown subnet group, parameter group, security group or KMS key, a KMS key on an unencrypted cluster, a retention period outside 1..354, malformed or overlapping windows. Records persisted before these fields existed are filled in with the defaults on read. Port is not taken from the request: the port a cluster reports is the one it is reachable on. Closes #2614 * fix(docdb): enforce deletion protection, parameter group family and undrivable windows DeleteDBCluster refuses a cluster with DeletionProtection, before any state changes. A named parameter group must belong to the family of the engine version the cluster will run, judged on modify against the requested version rather than the stored one; a cluster on a default group follows an engine version change to the new family's default. A window given without its counterpart that leaves no daily half hour for the derived one is refused with the live wording instead of a derived window that overlaps. * fix(docdb): refuse an engine version change that keeps a custom group of the old family * fix(docdb): judge a retained parameter group by its stored family, not its name * fix(docdb): classify a retained parameter group through the RDS catalogue, not its name --------- Co-authored-by: Priamo Germosen <6233424+pgermosen@users.noreply.github.com>