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

plain-hair-43030

11/13/2022, 5:58 PM
Hey, I'm playing around with the pulumi-github provider and trying to import a repository using
pulumi import github:repository:Repository p pulumi/pulumi
. sadly this results in
error: Preview failed: unrecognized resource type (Read): github:repository:Repository
An earlier attempt resulted in
error: import type "github:Repository" is not a valid resource type token. Type tokens must be of the format <package>:<module>:<type> - refer to the import section of the provider resource documentation.
That led me to look further at https://www.pulumi.com/registry/packages/github/api-docs/repository/, but I don't see info there on how to import, neither is there a module name being shown (in contrast to other some other - larger - providers such as for gcp which do are splitted up into different modules). So what is the correct invocation I need to import some existing github repository into my pulumi code?
e

echoing-dinner-19531

11/13/2022, 6:11 PM
I think the type token you want is
github:index/repository:Repository