I am trying to tweak the token mentioned <here> (`...
# python
I am trying to tweak the token mentioned here (
) , to something like
. But whenever I name it something apart from
I end up getting this stack trace mentioned in the thread. Can someone help me out with this? I might be missing something obvious
Copy code
error: Program failed with an unhandled exception:
    error: Traceback (most recent call last):
      File "/home/sushantk/temporary/pulumi-demo/pulumi-COMPANY_NAME/examples/COMPANY_NAME-example/venv/lib/python3.8/site-packages/pulumi/runtime/resource.py", line 519, in do_rpc_call
        return monitor.RegisterResource(req)
      File "/home/sushantk/temporary/pulumi-demo/pulumi-COMPANY_NAME/examples/COMPANY_NAME-example/venv/lib/python3.8/site-packages/grpc/_channel.py", line 946, in __call__
        return _end_unary_response_blocking(state, call, False, None)
      File "/home/sushantk/temporary/pulumi-demo/pulumi-COMPANY_NAME/examples/COMPANY_NAME-example/venv/lib/python3.8/site-packages/grpc/_channel.py", line 849, in _end_unary_response_blocking
        raise _InactiveRpcError(state)
    grpc._channel._InactiveRpcError: <_InactiveRpcError of RPC that terminated with:
    	status = StatusCode.UNKNOWN
    	details = "Unexpected <class 'Exception'>: Unknown resource type COMPANY_NAME:MODULE_NAME:RESOURCE_NAME"
    	debug_error_string = "{"created":"@1638385658.479468567","description":"Error received from peer ipv4:","file":"src/core/lib/surface/call.cc","file_line":1063,"grpc_message":"Unexpected <class 'Exception'>: Unknown resource type COMPANY_NAME:MODULE_NAME:RESOURCE_NAME","grpc_status":2}"
For background I havent changed much in the boiler plate code apart from replacing
to the required provider name.
i has to be index
I see
Also, is one of the input parameter fixed to
confused me who didn’t use
and still got it working
🤨 Nvm, I see it’s something more specific here. I was thinking about component resource naming scheme.
I guessing that is a naming convention followed? If you search for this phrase on this page
Copy code
https://www.pulumi.com/docs/intro/concepts/resources/#authoring-a-new-component-resource I had assumed that this would be configurable
I need to dig deeper into that then because the funny fact is that I have resources with tokens like:
and it works like a charm so I don’t really get the part where you guys say it has to be
Oh k. Fwiw, whenever I use a module name apart from
and run
make generate
the python SDK that gets generated has en extra directory created with that module name. And when I use index that does not happen.
Not sure if the hierarchy is understandable from those 2 screenshots but, the picture that has boxes with a blue tint has an additional
folder created. That does not happen with
Hi Jakub, just following up on this. Would it be possible for you to share the repo where you have tried create a repo with that token. I am seeing a ton of examples for golang but the boilerplate is the only one for python
Hi Jakub ! Following up on this. I am still trying to figure out what convention is used for tokens.
I have resources with tokens like: 
Any existing example will also do