hmm, this one succeeds during plan , but fails dur...
# general
b
hmm, this one succeeds during plan , but fails during apply where resource is created for the first time 😞 I'd expect it to fail during compilation due to missing field or at least at preview:
Copy code
const vpc = new gcp.compute.Network("main", {
    autoCreateSubnetworks: false
});
Copy code
+  gcp:compute:Network main creating 
 +  gcp:compute:Network main creating error: Plan apply failed: project: required field is not set
 +  gcp:compute:Network main **creating failed** error: Plan apply failed: project: required field is not set
yes it is
w
Yes - and unfortunately the upstream Google Terraform provider folks explicitly decided they did not want to improve this: https://github.com/terraform-providers/terraform-provider-google/issues/4071#issuecomment-514291169
b
yeah, but knowing it Pulumi can choose to always explicitly pass project in options, this way you can default to whatever google SDK defaults to and catch errors this way, before even calling TF