diff --git a/queries/databases-without-delete-protection-aws-and-alibaba.json b/queries/databases-without-delete-protection-aws-and-alibaba.json index 03a9358a..57817779 100644 --- a/queries/databases-without-delete-protection-aws-and-alibaba.json +++ b/queries/databases-without-delete-protection-aws-and-alibaba.json @@ -1,5 +1,5 @@ { "name": "Databases without delete protection aws and alibaba", "slug": "databases-without-delete-protection-aws-and-alibaba", - "query": "{ dbInstances (where: {deletionPrevention: \"disabled\"}) { identifier accountID cloudAccountID cloudAccountName cloudProvider idFromProvider internalAssetType internalName internalRegion assetCategory } }" + "query": "{ dbInstances(where: { AND: [ {deletionPrevention: \"disabled\" } {OR: [{ dbCluster: null }{ dbCluster: { deletionProtection: false }}]}]}) { identifier accountID cloudAccountID cloudAccountName cloudProvider idFromProvider internalAssetType internalName internalRegion assetCategory } }" } \ No newline at end of file