https://pulumi.com logo
Title
b

bumpy-summer-9075

04/20/2021, 3:31 PM
How do you figure out the resource type string to use with
pulumi import
? The way I do it right now is to create a fake resource in my code, run
pulumi preview
and get the string from there, it's not great but it works.
r

red-match-15116

04/20/2021, 3:41 PM
What resources are you trying to import? The docs usually have an
import
block that lists them. Lemme find one.
b

bumpy-summer-9075

04/20/2021, 3:42 PM
k8s.core.v1.Service
b

bumpy-summer-9075

04/20/2021, 3:42 PM
There's no documentation, but I figured out it was
namespace/servicename
👍🏽 1
r

red-match-15116

04/20/2021, 3:42 PM
Ooh k8s is an interesting one. I think that provider does not have it in the docs.
b

bumpy-summer-9075

04/20/2021, 4:26 PM
I would have added it myself but I don't understand how the documentation is laid out https://www.pulumi.com/docs/reference/pkg/kubernetes/core/v1/service/# has a "request a change" button, but that only opens an issue, and points to a non-existing file
r

red-match-15116

04/20/2021, 4:28 PM
Yeah, all of our documentation is auto-generated from the schema. So we would need to include it in the schema and then pipe it through to the documentation generation. There’s an existing issue for it: https://github.com/pulumi/pulumi-kubernetes/issues/1390
b

bumpy-summer-9075

04/20/2021, 4:54 PM
awesome thanks @red-match-15116