https://pulumi.com logo
#google-cloud
Title
# google-cloud
l

limited-lighter-76074

12/22/2023, 4:48 PM
Hey guys, what's up! I have a question: Any way to do a postgres database instance (using gcp.sql, managed sql service) and initialize it with a script? Or do I have to do it manually? Don't see any documentation here
d

dry-keyboard-94795

12/22/2023, 6:25 PM
I use the postgres provider for initialising the database: https://www.pulumi.com/registry/packages/postgresql/ You can refer to the docs here for how to connect with cloudsql: https://registry.terraform.io/providers/cyrilgdn/postgresql/latest/docs#gcp
l

limited-lighter-76074

12/26/2023, 10:47 AM
Thanks for the tip! Will try it out later