Open snj07 opened 2 years ago
We'd need to confirm, but I believe the client needs to access the instance information in the cluster, which is why the additional IAM policies are needed.
I believe we don't need to have access for "db:*" with aws describe-db-clusters --db-cluster-identifier neptune-dummy-id-xyz
and it serves the purpose. It may not be easy in most of the cases to get the access to all the instances for an IAM role.
Why does it need to have permission for "db:" (in the error logs)? I am expecting it to have a proper cluster id in ARN for permission request. I get the same error using aws cli command
describe-db-instances
but I triedaws describe-db-clusters --db-cluster-identifier neptune-dummy-id-xyz
which works fine (with the permission I have for the role) and gives replica details. Do we actually need to have permission for "db:" to userefreshAgent.getAddresses().get(EndpointsType.ReadReplicas)
?