busy-lawyer-33856
03/22/2023, 7:12 AMpulumi_gcp.sql
.
I have found the library pulumi_postgresql
, but I find it hard to get it to work from the documentation.
I have made tried making the resource pulumi_postgresql.Grant
:
grants_to_user = postgresql.Grant("user-GRANTS",
database=database.name,
object_type="database",
privileges=["SELECT"],
role=db_role.name,
)
where db_role.name
is made with pulumi_postgresql.Role
:
db_role= postgresql.Role('DB-ROLE',
login=True,
roles=["SELECT"],
password = 'PASSWORD'
)
They both grant the same error:
error: 1 error occurred:
* error detecting capabilities: error PostgreSQL version: dial tcp [::1]:5432: connect: connection refused
I find it hard to debug this error, so I was wondering if anyone have a solution for the problem?
Any help is greatly appreciated!
Best Regards
Eliasstocky-restaurant-98004
03/22/2023, 2:49 PMbusy-lawyer-33856
03/22/2023, 2:53 PMstocky-restaurant-98004
03/22/2023, 2:56 PMbusy-lawyer-33856
03/22/2023, 2:57 PMstocky-restaurant-98004
03/22/2023, 2:57 PMbusy-lawyer-33856
03/22/2023, 3:00 PMstocky-restaurant-98004
03/22/2023, 3:04 PMbusy-lawyer-33856
03/22/2023, 3:07 PMstocky-restaurant-98004
03/22/2023, 3:15 PM