fix: skip parameter groups deleted mid-describe

This commit is contained in:
Julian Sommer
2026-08-06 16:28:26 +10:00
parent 0a1d837f40
commit f5adfb1c79
+1 -1
View File
@@ -118,7 +118,7 @@ func (s *Service) DescribeDBParameterGroups(ctx context.Context, input *rds.Desc
if err != nil {
// Deleted between the listing and this read; the same answer a describe
// one tick later would give.
if strings.HasPrefix(err.Error(), awserrors.ErrorDBParameterGroupNotFound) {
if awserrors.IsErrorCode(err, awserrors.ErrorDBParameterGroupNotFound) {
continue
}
return nil, err