mirror of
https://github.com/floci-io/floci.git
synced 2026-11-24 06:20:24 -05:00
fix(rds): return DBSubnetGroupNotFoundFault for missing DescribeDBSubnetGroups name (#1870)
DescribeDBSubnetGroups with a missing DBSubnetGroupName returned HTTP 200 and an empty list; reuse resolveDbSubnetGroupView so AWS clients get a 404 fault instead.
This commit is contained in:
1 parent
a7d33ba885
commit
1ba15f0ce7
3 files changed
+38
-2
No files matched your search
@@ -803,7 +803,10 @@ public class RdsService implements Resettable {
|
||||
groups.add(buildDefaultSubnetGroup(effectiveRegion(region)));
|
||||
}
|
||||
if (filterName != null && !filterName.isBlank()) {
|
||||
subnetGroups.get(filterName).ifPresent(groups::add);
|
||||
if (!"default".equalsIgnoreCase(filterName)) {
|
||||
// Specific name: AWS DescribeDBSubnetGroups faults when absent (not empty 200).
|
||||
groups.add(resolveDbSubnetGroupView(filterName, region));
|
||||
}
|
||||
return groups;
|
||||
}
|
||||
groups.addAll(subnetGroups.scan(k -> true));
|
||||
|
||||
Reference in new issue
Block a user