https://pulumi.com logo
#general
Title
# general
c

calm-quill-21760

08/18/2021, 10:56 PM
How do I prevent
pulumi
from downloading a plugin? I have a previous version installed but it insists on downloading a later one (that I suspect has a bug).
b

bumpy-grass-54508

08/19/2021, 2:17 PM
this has happened to me before - pulumi will bake the version of the provider you are using into the state file. so even if something was broken and you are now using a new version of the provider, during the diff it will still install the old version alongside the new version of the provider. normally that is OK but if the old version has a bug and cannot even run, you are in a tight spot
i got around it by a hacky workaround: https://github.com/pulumi/pulumi-aws/issues/1501#issuecomment-844280327 basically install the new version, and then
cp
it to the location of the old version, so when pulumi tries to run the old version it is actually running the new version you'll get some warnings, and it is not a supported scenario, but it did get me out of one bind
c

calm-quill-21760

08/19/2021, 9:29 PM
Thanks!
👍 1
5 Views