pulumi / registry

The global index of everything you can do with Pulumi.
https://www.pulumi.com/registry
Apache License 2.0
27 stars 121 forks source link

Provide a centralized lookup for PluginDownloadURL #4851

Open iwahbe opened 3 months ago

iwahbe commented 3 months ago

Hello!

Issue details

The registry should be able to serve as a centralized lookup table to go from a plugin name like prov (implicitly pulumi/prov) or myGithubOrg/my-prov to an appropriate plugin download URL. Right now, downloading a provider not hosted in the pulumi org at it's canonical repo (pulumi/pulumi-${PLUGIN_NAME})mrequired passing --plugin-download-url. The registry already has access to all the information necessary to serve this information.

This is effectively a derivative case of https://github.com/pulumi/registry/issues/2388.

The pulumi CLI currently maintains a hard-coded list of plugin -> download URL mappings, which does not scale with community packages or allow packages to move (since only the latest version of pulumi is up to date).

Affected area/feature