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

big-engineer-71075

08/18/2022, 8:53 PM
I am using Pulumi to create a dataproc cluster. When I run
preview --refresh --diff
, I see a diff on the cluster for the
machineTypeUri
property. The weird thing is that the diff is of the form:
"<https://www.googleapis.com/compute/v1/projects/MY_PROJECT_ID/zones/us-east4-b/machineTypes/c2-standard-8>" => "c2-standard-8"
I initially set
machineTypeUri
to "c2-standard-8" but I am guessing that GCP updates this with the full URI. How can I make this stop causing a diff? I know I could add
config.workerConfig.machineTypeUri
to
ignoreChanges
but I'm not sure that's a great approach - if it changes outside of Pulumi, I think I'd want Pulumi to know and deal with it. Also, somewhat related: on this page, https://www.pulumi.com/registry/packages/gcp/api-docs/dataproc/cluster/#clusterclusterconfigworkerconfig , it shows that there is a property named
machineType
. But the actual code requires a config property named
machineTypeUri
-
machineType
doesn't seem to be a valid name.