Hi, I’m trying to force pulumi to use a specific p...
# automation-api
s
Hi, I’m trying to force pulumi to use a specific plugin version (It’s using aws
5.25.0
, and I’m trying to use
4.0.0
), but it’s still installing the default plugin version during the
up
command What I tried - • Change `package.json`/
yarn.lock
files to the specific version:
Copy code
"dependencies": {
    "@pulumi/pulumi": "^3.50.2",
    "@pulumi/aws": "4.0.0",
    "@pulumi/awsx": "^0.40.0"
  }
• Remove all the installed plugin versions but the wanted version.
Copy code
pulumi plugin ls
NAME        KIND      VERSION  SIZE    INSTALLED      LAST USED
aws         resource  4.0.0    255 MB  5 seconds ago  5 seconds ago
• Update the
yaml
file with the
plugins
option, as here - https://github.com/pulumi/pulumi-hugo/blob/e59734a63d61722cf18720c6b73bd4af72ca8c38/themes/default/content/docs/reference/pulumi-yaml.md#plug[…]ions
Copy code
plugins:
  providers:
    name: aws
    version: 4.0.0
I also found this issue, but I couldn’t understand how to do that - https://github.com/pulumi/pulumi/issues/7702 Can anyone help? Thanks
l
If you look at the state file, do you see referenced to
5.25.0
in there? You can export your state via
pulumi stack export --file stack.json
and then search that file.
s
Yes
Do you have any idea? Thanks
l
I'm not sure I have straightforward instructions for a provider downgrade personally. @billowy-army-68599 might?
b
you may need to modify the state file to reference the old provider version, we don’t support downgrading providers via the version string