Search code examples
pulumi

Download Pulumi Packages from mirror


I'm trying to use Pulumi packages within a GitLab CI that doesn't have direct access to GitHub, however it may use a corresponding mirror to download the files. Currently the install command fails, because the pulumi install command in the pipeline tries to download them from Github. I haven't found a way to configure pulumi to download the packages from the mirror. Does anyone know how this can be achieved?


Solution

  • Okay it seems like the problem is that the package includes a plugin that is causing the problem. For plugins, there is the --server flag to pass in a mirror. It seems to work if I install the plugin using the server flag beforehand. As Pulumi doesn't seem to remember where it got the plugin from I will have to install it this way each time in the pipeline before running the regular pulumi install command.