This message was deleted.
# general
s
This message was deleted.
b
b
@busy-soccer-65968 we have a backlog item to update the docs, but I can probably assist if you're stuck somewhere
šŸ‘ 1
b
i'll keep poking around some. I think I need a better understanding myself before I know what I'm actually stuck on.
@billowy-army-68599 I think i've i'm close. on running the last
make
command.
Copy code
error: [resource plugin onepassword-0.0.1] downloading from : 403 HTTP error fetching plugin from <https://get.pulumi.com/releases/plugins/pulumi-resource-onepassword-v0.0.1-linux-amd64.tar.gz>
which make targets do I care about to simply test locally?
b
@busy-soccer-65968 this repo assumes you're uploading releases to our API backend, remove this line: https://github.com/pulumi/pulumi-tf-provider-boilerplate/blob/master/Makefile#L85
šŸ‘ 1
b
thx that got me further. Now got some type assertions to hash out
@billowy-army-68599. Alright I seemed to have gotten it working. Modified the original provider, and yarn linking from the nodejs sdk generated from the boilerplate template. How would I go about bundling it? currently I have a
replace => local path to provider
in the tf bridge code. and i'm yarn linking to another project. Wondering how yall wrap it all up nicely.
b
unfortunately we don't have a great story for distributing community providers just yet, generally we ask you publish it to the github releases page which will allow for installation via
pulumi plugin install --server
b
which part would be published? the
sdk
generated directory?
guess I can peak at some other bridged stuff you guys have.
i'll see what makes sense with our team for using it. Then see if I can align that with the plugin install your explaining above.
thx again for listening to me struggle through this process XD
b
there are 2 things to publish, the binary that gets created, and the SDK. the sdk goes to npm/pypi/nuget and the binary needs to be available
as above
šŸ™ 1
b
@billowy-army-68599 what binary am I looking for 😁? sdk is easy to find. I can't seem to find any binary.
seems to work without any binary and just having the sdk published 🤷
b
it'll be in your
$PATH
do
which pulumi-provider-1password
b
hmm
Copy code
~                                                                                                                                                                                                                                                                
ā–¶ which pulumi-provider-1password
pulumi-provider-1password not found

~                                                                                                                                                                                                                                                               ā‰
ā–¶ which pulumi-provider-onepassword
pulumi-provider-onepassword not found
anywhere else I might find it?
b
GOPATH/bin
$HOME/.pulumi/plugins
b
$GOPATH
! that's it thx
of course I should have checked there. ty
hmm, so when my m8 tries and runs he gets
Copy code
Diagnostics:
  pulumi:providers:onepassword (default_1_0_0):
    error: no resource plugin 'onepassword-v1.0.0' found in the workspace or on your $PATH, install the plugin using `pulumi plugin install resource onepassword v1.0.0
b
yeah it needs to be added to
$HOME/.pulumi/plugins
b
I don't have it in my
Copy code
$HOME/.pulumi/plugins
ā–¶ ls ~/.pulumi/plugins 
resource-aws-v0.16.10  resource-aws-v2.3.0        resource-docker-v1.3.0       resource-kubernetes-v1.5.0
resource-aws-v0.18.15  resource-aws-v2.4.0        resource-docker-v1.4.0       resource-kubernetes-v1.5.6
resource-aws-v0.18.16  resource-aws-v2.5.0        resource-docker-v1.5.0       resource-kubernetes-v1.5.7
resource-aws-v0.18.6   resource-aws-v2.6.0        resource-docker-v2.0.0       resource-kubernetes-v1.5.8
resource-aws-v1.1.0    resource-aws-v2.7.0        resource-docker-v2.1.0       resource-kubernetes-v1.6.0
resource-aws-v1.20.0   resource-aws-v2.8.0        resource-docker-v2.1.1       resource-kubernetes-v2.0.0
resource-aws-v1.2.1    resource-datadog-v0.18.10  resource-docker-v2.2.0       resource-kubernetes-v2.0.0-beta.1
resource-aws-v1.22.0   resource-datadog-v0.18.11  resource-docker-v2.2.1       resource-kubernetes-v2.1.1
resource-aws-v1.23.0   resource-datadog-v1.0.0    resource-docker-v2.2.2       resource-kubernetes-v2.2.0
resource-aws-v1.25.0   resource-datadog-v1.2.0    resource-kubernetes-v0.18.0  resource-kubernetes-v2.2.2
resource-aws-v1.26.0   resource-datadog-v1.3.0    resource-kubernetes-v0.20.4  resource-kubernetes-v2.3.0
resource-aws-v1.27.0   resource-datadog-v1.4.0    resource-kubernetes-v0.21.1  resource-postgresql-v1.4.0
resource-aws-v1.28.0   resource-datadog-v2.0.0    resource-kubernetes-v0.23.1  resource-postgresql-v2.0.0
resource-aws-v1.29.0   resource-datadog-v2.1.0    resource-kubernetes-v0.24.0  resource-postgresql-v2.1.0
resource-aws-v1.30.0   resource-datadog-v2.1.1    resource-kubernetes-v0.25.1  resource-random-v1.5.0
resource-aws-v1.31.0   resource-datadog-v2.1.2    resource-kubernetes-v1.0.0   resource-random-v2.0.0
resource-aws-v1.6.0    resource-docker-v0.16.4    resource-kubernetes-v1.0.1   resource-random-v2.1.0
resource-aws-v1.7.0    resource-docker-v0.17.0    resource-kubernetes-v1.1.0   resource-spotinst-v2.4.0
resource-aws-v2.1.0    resource-docker-v0.17.4    resource-kubernetes-v1.2.3
sorry if these questions are silly, this is out of my wheelhouse somewhat.
b
yeah that's because you have it in your
$PATH
from when you built it
you'll need to distribute the binary, and have your colleagues either place it in their path, or inside pulumi-plugins
b
which binary?
Copy code
ā–¶ ls ~/go/bin | grep password
pulumi-resource-onepassword
pulumi-tfgen-onepassword
terraform-provider-1password
I do not have a
onepassword-v1.0.0
mentioned in his error
b
the top one
pulumi-resource-onepassword
if you run
pulumi-resource-onepassword -version
you'll see it's v1.0.0
b
so if that is in path. it will take the place of any
plugin
that the SDK is looking for?
omg.. that is the plugin
šŸ™
b
šŸ™‚
b
alright, hopefully my last question. is there a specific format to give it to them as. So that they could simply run
pulumi plugin install --server=<http://mywebsite.com/resource|mywebsite.com/resource>
looks like in the
plugin install
docs it can use
-f
for a tarbal. is it expecting a tarball for
--server
?
b
yeah a tar ball, in the format like the releases here https://github.com/jaxxstorm/pulumi-rke/releases/tag/v2.0.0
🤘 1
b
it worked! šŸ•ŗ . Thanks a lot for the help