Hello,
I am deploying a Global-Writes (Geo-Sharding) Cluster in Atlas, with Self-Managed Sharding.
I noticed that when listing the shards, the shards have no tags. For examples,
> db.adminCommand({ listShards: 1 }).shards[0]
< {
_id: 'atlas-<hidden>-shard-0',
host: '<hidden>',
state: 1,
topologyTime: Timestamp({ t: 1733546527, i: 9 }),
replSetConfigVersion: Long('1')
}
Although the deployment was done via Terraform (and the MongoDB Atlas provider), the resource does not expose the shard IDs.
I have checked the API (Get Single Cluster). The API does not show shard IDs.
However, in the Atlas UI, I see the shard ID and the zone name I selected.
Is there a programmatic way to determine which shard ID belongs to which cloud region it was deployed to, so we can configure the zones ourselves?