diff --git a/fleetshard/pkg/central/cloudprovider/awsclient/rds.go b/fleetshard/pkg/central/cloudprovider/awsclient/rds.go index 40267ad782..fb8040b5b4 100644 --- a/fleetshard/pkg/central/cloudprovider/awsclient/rds.go +++ b/fleetshard/pkg/central/cloudprovider/awsclient/rds.go @@ -113,7 +113,7 @@ func (r *RDS) GetDBConnection(databaseID string) (postgres.DBConnection, error) var awsErr awserr.Error if errors.As(err, &awsErr) { if awsErr.Code() == rds.ErrCodeDBClusterNotFoundFault { - err = errors.Join(cloudprovider.ErrDBBackupInProgress, err) + err = errors.Join(cloudprovider.ErrDBNotFound, err) } }