I'm using the Automation API (.NET) in conjunction...
# automation-api
b
I'm using the Automation API (.NET) in conjunction with a custom provider, pulumi-honeycomb. Running locally was fine, but started receiving the following error from a GitHub Action:
Copy code
pulumi:providers:honeycomb default_0_0_15  error: Could not automatically download and install resource plugin 'pulumi-resource-honeycomb' at version v0.0.15, install the plugin using `pulumi plugin install resource honeycomb v0.0.15`: error downloading provider honeycomb to file: failed to download plugin: honeycomb-0.0.15: 403 HTTP error fetching plugin from <https://get.pulumi.com/releases/plugins/pulumi-resource-honeycomb-v0.0.15-linux-amd64.tar.gz>
I then explicitly added an install plugin step to my automation API program, but it also failed:
Copy code
await stackReference.Workspace.InstallPluginAsync("pulumi-honeycomb", "v0.0.15");
I noticed a custom server URL can be provided to let Pulumi know where to install the package from, so I tried that:
Copy code
await stackReference.Workspace.InstallPluginAsync("pulumi-honeycomb", "v0.0.15", PluginKind.Resource, new PluginInstallOptions
        {
            ServerUrl = "<https://github.com/MaterializeInc/pulumi-honeycomb/releases/tag/v0.0.15>"
        });
But I'm still ending up with an error (different one this time) 😞
Copy code
error: [resource plugin pulumi-honeycomb-0.0.15] downloading from <https://github.com/MaterializeInc/pulumi-honeycomb/releases/tag/v0.0.15>: failed to download plugin: pulumi-honeycomb-0.0.15: expected -1 bytes but copied 174165 when downloading plugin pulumi-honeycomb-0.0.15
Anyone got any hints or suggestions?
I'm also receiving the same error when running directly from the CLI:
Copy code
pulumi plugin install resource pulumi-honeycomb v0.0.15 --server <https://github.com/MaterializeInc/pulumi-honeycomb/releases/tag/v0.0.15>
Alright it was me being dumb, this works:
Copy code
await stackReference.Workspace.InstallPluginAsync("honeycomb", "v0.0.15", PluginKind.Resource, new PluginInstallOptions
        {
            ServerUrl = "<https://github.com/MaterializeInc/pulumi-honeycomb/releases/download/v0.0.15>"
        });
Doesn't need to be prefixed with
pulumi-
and it should be
/download
instead of
/tag
🙌 1