not sure if this is the right room but I’m having ...
# python
f
not sure if this is the right room but I’m having issues getting the postgresql provider working (I’m converting from terraform). I’ve got something like this currently (disclaimer: I don’t know postgres very well) :
Copy code
devRole = pulumi_postgresql.role.Role(f'developers-{i}',
                connection_limit=100,
                create_database=True,
                login=True,
                name=userlist[i],
                password='password',
                skip_reassign_owned=True,
                opts=ResourceOptions(provider=postgresProvider, depends_on=[postgresProvider]))
running results in a
PostgreSQL version: dial tcp :5432: connect: connection refused
So I assumed it was because
tf2pulumi
didn’t handle
provider "postgresql"
, so I added that and set the provider but I’m still getting the same error. is there somewhere I can find a python example of how to use postgres with pulumi?