Open hcharley opened 2 years ago
Just to add some info: looks like this a common issue with several google-native
components. I see the same erros with NetworkEndpointGroup
and SslCertificate
as well, to name a few. If I manually edit the stack to add outputs.selfLink
(should be the same as the id
), I get a different error message:
Diagnostics:
google-native:compute/v1:RegionNetworkEndpointGroup (xxx-xxx-xxx):
error: Preview failed: Import is not yet implemented
Ah, just to make the jump @vschettino-asimov, it seems it is possible/probable that the selfLink
error is just obscuring the Import is not yet implemented
error.
Edit: here is the ticket for importing: https://github.com/pulumi/pulumi-google-native/issues/81
This was working fine for me for a while.
It now breaks both during pulumi up
or pulumi destroy
google-native:compute/v1:Disk (gce_disk): error: Preview failed: selfLink property "selfLink" not found
I've upgraded the package for google-native and pulumi and no dice.
├─ @pulumi/google-native@0.20.0 │ └─ @pulumi/pulumi@^3.0.0 ├─ @pulumi/pulumi@3.34.1 │ ├─ @grpc/grpc-js@~1.3.8 │ ├─ @logdna/tail-file@^2.0.6 │ ├─ @pulumi/query@^0.3.0 │ ├─ google-protobuf@^3.5.0 │ ├─ ini@^2.0.0 │ ├─ js-yaml@^3.14.0 │ ├─ minimist@^1.2.6 │ ├─ normalize-package-data@^2.4.0 │ ├─ read-package-tree@^5.3.1 │ ├─ require-from-string@^2.0.1 │ ├─ semver@^6.1.0 │ ├─ source-map-support@^0.4.16 │ ├─ ts-node@^7.0.1 │ ├─ typescript@~3.7.3 │ └─ upath@^1.1.0
I get the same message when I try to import an existing resource (a google-native:storage/v1:Bucket) using pulumi import
.
@solomonshorser Yes import support is not yet in place. We are actively prioritizing https://github.com/pulumi/pulumi-google-native/issues/81 to support this.
@viveklak My future projects look forward to this!
What happened?
Running
pulumi preview
failed using this resource type:With this error:
Steps to reproduce
Expected Behavior
Expected to be able to preview the stack.
Actual Behavior
Failed to preview the stack.
Versions used
Pulumi version: 3.31.0-alpha.1650929512
Packages:
Additional context
Using Pulumi automation API via NodeJS.
Related(?) ticket and first mention of this issue found in this comment:
https://github.com/pulumi/pulumi-google-native/issues/35#issuecomment-1114910494
Contributing
Vote on this issue by adding a 👍 reaction. To contribute a fix for this issue, leave a comment (and link to your pull request, if you've opened one already).