teleport
teleport copied to clipboard
Fix auto discovery on secondary cluster of a global Aurora database
Fixes #16079
- #16079
Root cause: https://github.com/gravitational/teleport/blob/9514a313c3d9c4438e3deae8fd34df6cc63a5b8c/lib/srv/db/cloud/watchers/rds.go#L207-L214 This assumption was WRONG. If there is only one member in the cluster, it's not necessarily a writer.
In the case of a secondary cluster of a global Aurora database, the secondary cluster can have no writers but only readers.