https://pulumi.com logo
h

helpful-advantage-49286

01/12/2019, 1:16 AM
Looking at creating a GCP database instance that isn’t one of the tiny ones, and it says it must be a custom instance, how do I go about creating one of those w/ Pulumi?
g

glamorous-printer-66548

01/12/2019, 4:02 AM
I think you have to specify as tier something like
custom-<NUMBER_OF_CPUS>-<AMOUNT_OF_MEMORY>
e.g.
custom-4-4000
which ends up as 4 cpu and 4000 MB memory. I got that from here: https://cloud.google.com/compute/docs/instances/creating-instance-with-custom-machine-type#creating_the_instance and here: https://www.terraform.io/docs/providers/google/r/compute_instance.html#machine_type
h

helpful-advantage-49286

01/12/2019, 10:26 PM
Thanks!
Doesn’t seem to work properly
I get an error, but still digging in
got it, has to be
db-custom-X-Y