mirror of
https://github.com/floci-io/floci.git
synced 2026-12-01 01:12:48 -05:00
fix(rds): omit Aurora instance storage modifications (#9400)
DescribeValidDBInstanceModifications offered four instance storage types for an Aurora record with no cluster identifier, while ModifyDBInstance discards a requested storage type for any Aurora engine. The valid-modifications path now applies the same Aurora check and returns no storage options for it. Closes #9294
This commit is contained in:
1 parent
0dfd50febb
commit
b504a2e9c2
2 files changed
+22
-1
No files matched your search
@@ -4597,7 +4597,7 @@ public class RdsService implements Resettable, ResourceProvider {
|
||||
throw new AwsException("InvalidDBInstanceState",
|
||||
"DB instance " + id + " is not in available state.", 400);
|
||||
}
|
||||
if (!isBlank(instance.getDbClusterIdentifier())) {
|
||||
if (!isBlank(instance.getDbClusterIdentifier()) || isAuroraEngine(engineName(instance))) {
|
||||
return List.of();
|
||||
}
|
||||
int maximum = instance.getEngine() == DatabaseEngine.SQLSERVER ? MAX_SQLSERVER_STORAGE_GIB : MAX_STORAGE_GIB;
|
||||
|
||||
Reference in new issue
Block a user