Download Pulumi Packages from mirror - Stack Overflow

admin2025-04-18  5

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?

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?

Share Improve this question asked Jan 30 at 9:34 Tim VahlbrockTim Vahlbrock 11310 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 0

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.

转载请注明原文地址:http://anycun.com/QandA/1744929020a89622.html