https://pulumi.com logo
Title
q

quick-painter-61380

11/29/2021, 3:22 PM
Hi all, I'm struggling trying to get started with pulumi. I've started off by trying to import some of my existing infra (google-native) but it's failing for me. I tried to go take a look at the docs here https://www.pulumi.com/registry/packages/google-native/api-docs/https://www.pulumi.com/registry/packages/google-native/api-docs/ but when I click on Bucket I get a 404.
t

tall-librarian-49374

11/29/2021, 3:46 PM
Hi! The link in your message looks broken - these are two links in one. Did you copy it from the browser? What was the previous page?
q

quick-painter-61380

11/29/2021, 4:42 PM
Sorry, not sure what happened there. That link (https://www.pulumi.com/registry/packages/google-native/api-docs/) does work but when I try to click to the specific docs about the bucket (https://www.pulumi.com/registry/packages/google-native/api-docs/compute/v1/bucket) I get a 404.
Testing around some more it seems that there are some things in the filterable tree that aren't shown when you drill down manually. Bucket for example. Not sure what the difference between
Bucket
and
BackendBucket
is but the first isn't actually there and the second is.
Maybe
Bucket
has been depreciated in favor of
BackendBucket
?
t

tall-librarian-49374

11/29/2021, 5:30 PM
Bucket works for me… where exactly are you clicking? Could you share a screenshot please?
q

quick-painter-61380

11/29/2021, 6:07 PM
also, you can see there that it's under compute/v1 but if i navigate there (https://www.pulumi.com/registry/packages/google-native/api-docs/compute/v1/) it doesn't have bucket.
t

tall-librarian-49374

11/29/2021, 6:11 PM
Oh, it should be under storage. There may be a bug in the tree search.
q

quick-painter-61380

11/29/2021, 6:19 PM
ahh great. seems it's just missing from compute but it shows up there in the search tree on the left
as can be seen in the screenshot above
this works fine for me though, thanks
though I don't see any docs in there that would help with figuring out why i can't import
t

tall-librarian-49374

11/29/2021, 7:15 PM
One possible step is to create a new Bucket with Pulumi and see its ID (
pulumi stack export
)
q

quick-painter-61380

11/29/2021, 11:45 PM
strangely that's the part that threw me off the most:
❯ p stack output
Current stack outputs (1):
    OUTPUT          VALUE
    bucketSelfLink  <https://www.googleapis.com/storage/v1/b/my-bucket-8099773>
the actual links for storage buckets is like above but
s/www/storage/
when I used a storage link I got this instead
error: Preview failed: Import is not yet implemented