1
Use the reader endpoint
The one with The master user is fine to start. Use a password: IAM authentication
tokens expire after 15 minutes.
cluster-ro- in its name, among the cluster’s endpoints.
It spreads Midplane’s reads over the Aurora Replicas; a cluster with no
replica answers there from the writer.2
Let Midplane in
Directly, with the instances publicly accessible and the cluster’s
security group admitting your region’s
egress addresses on 5432. Or through an
SSH bastion in the cluster’s VPC.
3
Run the role script on the writer
Connect through the cluster endpoint (without
-ro-), to the same
database: the reader endpoint is read-only, and the role reaches the
replicas from the writer (the role script).