https://pulumi.com logo
Title
s

some-nail-32772

01/17/2023, 9:47 AM
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:
"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.
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
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

lemon-agent-27707

01/17/2023, 4:42 PM
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

some-nail-32772

01/17/2023, 4:43 PM
Yes
Do you have any idea? Thanks
l

lemon-agent-27707

01/19/2023, 11:04 PM
I'm not sure I have straightforward instructions for a provider downgrade personally. @billowy-army-68599 might?
b

billowy-army-68599

01/19/2023, 11:11 PM
you may need to modify the state file to reference the old provider version, we don’t support downgrading providers via the version string