I'm trying to deploy a Springboot application on Cloud Run and running into the issue of connection not getting connected for Prostgres Cloud SQL. I tried everything possible that I know of including the guide here but still get this error
unable to obtain isolated JDBC connection [The connection attempt failed.]
Can someone please help me here?
Here is my config file
spring:
cloud:
gcp:
project-id: my_project_id
secretmanager:
enabled: true
sql:
instance-connection-name: ${INSTANCE_UNIX_SOCKET}
database-name: ${DB_NAME}
enabled: true
datasource:
# url: ${JDBC_DB_URL}
# driverClassName: org.postgresql.Driver
username: ${JDBC_DB_USERNAME}
password: ${JDBC_DB_PASSWORD}
initialization-mode: always