#!/bin/bash
project=${1:-direct}
yc mdb cluster List --projectId $(cat ~/.yndx/yc-iam-project.$project)  | jq -r '[.clusters[] | { type: .type, name: .name, env: .environment, instanceType: .infrastructureOptions.instanceType, volumeSize: .infrastructureOptions.volumeSize, projectId: .projectId, clusterId: .id, status: .status }]'
