https://pulumi.com logo
Title
b

bored-oyster-3147

07/13/2021, 7:34 PM
Is there any documentation somewhere on serving private pulumi plugins with the
--server
flag on
pulumi plugin install
? Can the URL be blob storage? Is there a specific directory structure it is expecting? etc.
b

billowy-army-68599

07/13/2021, 8:32 PM
it's unfortunately not documented. it needs to be http and the format is:
<https://lbriggs.jfrog.io/artifactory/pulumi-packages/runmydamncontainer/pulumi-resource-rdc-v0.0.4-darwin-amd64.tar.gz>
so
pulumi-resource-<name>-v<version>-<os>.tar.gz
pulumi plugin install resource rdc v0.0.1-alpha.1622659303+64064f32 --server <https://lbriggs.jfrog.io/artifactory/pulumi-packages/runmydamncontainer>
b

bored-oyster-3147

07/13/2021, 8:37 PM
hmmm ok that makes sense. So for this example that you gave:
<https://lbriggs.jfrog.io/artifactory/pulumi-packages/runmydamncontainer/pulumi-resource-rdc-v0.0.4-darwin-amd64.tar.gz>
Would the command for that file be:
pulumi plugin install resource rdc v0.0.4 --server <https://lbriggs.jfrog.io/artifactory/pulumi-packages/runmydamncontainer>
Or did you mean to have the alpha version in there?
and for getting the tarball, we're using this boilerplate to write our provider: https://github.com/pulumi/pulumi-provider-boilerplate What are we packaging into the tarball from that? Is there any docs on that? Doesn't appear to be in that README.
and following on that tarball question is there some mechanism for packaging it for specific OSs for the
{os}
segment of the filename?
b

billowy-army-68599

07/13/2021, 8:40 PM
just the go binary goes into that tarball
b

bored-oyster-3147

07/13/2021, 8:40 PM
and finally, does the pulumi CLI just use the
resource {name} {version}
+ the
--server
value to build the full URL, and then request that? Or do it first try to browse the directory somehow, meaning blob storage wouldn't work?
b

billowy-army-68599

07/13/2021, 8:40 PM
that'll handle all the upload and packaging for you
🙌 1
i believe it sends a GET request, it might work with blob storage, but not entirely sure
b

bored-oyster-3147

07/13/2021, 8:41 PM
ok cool. Well I think I've got enough information to try it so thank you!