I need assistance with using the pulumi sdks built...
# package-authoring
b
I need assistance with using the pulumi sdks built using the tf bridge. At the step where I run
pulumi up
I get this error
Copy code
error: Could not automatically download and install resource plugin 'pulumi-resource-foo' at version v0.0.1-alpha.1720536403+6cfce8fe.dirty, install the plugin using `pulumi plugin install resource foo v0.0.1-alpha.1720536403+6cfce8fe.dirty`: error downloading provider foo to file: failed to download plugin: foo-0.0.1-alpha.1720536403+6cfce8fe.dirty: 403 HTTP error fetching plugin from <https://get.pulumi.com/releases/plugins/pulumi-resource-foo-v0.0.1-alpha.1720536403%2B6cfce8fe.dirty-darwin-arm64.tar.gz>
To my understanding, it should try to use the binary in the $GOPATH/bin. I'm not sure what's going on there. After researching a bit, I found that I could specify a local path in my Pulumi.yaml file, which I did. Now when I run
pulumi up
I get a different error
Copy code
error: could not read plugin [<local-path>/bin/pulumi-resource-foo] stdout: EOF
any assistance on this would be much appreciated
b
I assume that you're using the Pulumi boilerplate repository to create your provider. The Makefile will put the provider binary, build by the target
make provider
, in the
bin
sub-directory of the provider code repository. Ensure that the complete path to the
bin
directory is at the first position in the $PATH environment variable in the shell session in which you execute
pulumi up
. From my experience I'd test the provider first in a Pulumi YAML program, because YAML doesn't rely on any working package configuration for one of the other programming language.
b
WOW! I've been dealing with this for days. Thank you. One other question. What exactly does this mean?
Copy code
schemaOnlyProvider does not implement runtime operation InitLogging
b
What type of provider you're developing: native provider or wrapping a Terraform Provider. Seems you're developing a native provider.
b
I'm trying to wrap a terraform provider
b
Never had this message, when I wrapped a TF provider. Is there any more context around the message in the logs (outputs)? And when does this message occur? Building or running a Pulumi command?
Oh, by looking at the code of Terraform Pulumi Bridge this is a
panic
.
pf/internal/schemashim/provider.go:159: panic("schemaOnlyProvider does not implement runtime operation InitLogging")
Without looking at your code, hard to tell what's wrong. If you like you can try my Cookiecutter Template to wrap the TF provider. https://github.com/tmeckel/pulumi-tf-provider-cookiecutter?tab=readme-ov-file#cookiecutter-terraform-bridge-provider-template
b
I will give this a look. Thank you!
🔥 1