@svenklemm - how can I check that? I am running to a similar situation, on amazon.
I tried different postgres versions…
I used all default configurations on AWS except for the ones they require (like username).
Still I am unable to connect from Grafana. Tried all SSL options.