diff --git a/spinifex/handlers/rds/parametergroup.go b/spinifex/handlers/rds/parametergroup.go index e0b41fd83..866c6fe1b 100644 --- a/spinifex/handlers/rds/parametergroup.go +++ b/spinifex/handlers/rds/parametergroup.go @@ -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