https://pulumi.com logo
Title
f

flaky-twilight-44520

02/03/2023, 8:03 AM
Hi everyone! Is there any way to extend existing provider functionality? Specifically
@pulumi/postgresql.Provider
to start cloud sql/alloydb auth proxy before connecting to the instance?
b

best-summer-38252

02/04/2023, 6:52 PM
Can you make all your postgresql reasouces depend on a local.command resource that starts the proxy?
f

flaky-twilight-44520

02/07/2023, 10:58 AM
That unfortunately doesn't work for destroy. I worked around that with putting all logic into bash script with psql and creating a local command. Probably this use case would possible to fix only when https://github.com/pulumi/pulumi/issues/1691 is solved
b

best-summer-38252

02/14/2023, 12:16 AM
Thanks for sharing 1691 with me and glad you were able to create a workaround.