https://pulumi.com logo
#general
Title
# general
c

chilly-photographer-60932

02/07/2019, 1:10 AM
Running into this error
Copy code
gcp:dns:RecordSet (frontend):
    error: unexpected null property rrdatas[0]
w

white-balloon-205

02/07/2019, 1:37 AM
This is unexpected - I've opened https://github.com/pulumi/pulumi/issues/2433. You should be able to work around this by running
pulumi up --skip-preview
the first time to skip the initial preview - I believe things will work fine after that. But we need to look into why this is causing the failure. Alternatively, if your
apply
callback ensured that it always returned a valid string - that would avoid this problem - such as replacing this:
Copy code
return t[0].accessConfigs[0].assignedNatIp;
With this:
Copy code
return t[0].accessConfigs[0].assignedNatIp || "";
(The ultimate problem is that
.assignedNatIp
is undefined becuase that field does not exist on the
accessConfigs[0]
you provided as input - but that input should never be observable in that form because it will get filled in when the resource is created)
c

chilly-photographer-60932

02/07/2019, 2:05 AM
Thanks , that solved the issue.