https://pulumi.com logo
b

best-xylophone-83824

08/12/2019, 5:33 PM
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

white-balloon-205

08/12/2019, 5:59 PM
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

best-xylophone-83824

08/12/2019, 6:07 PM
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