Upgrade From 5.10.0 to 5.11.0
Learn how to upgrade Webiny from 5.10.0 to 5.11.0.
- how to upgrade Webiny from 5.10.0 to 5.11.0
1. Upgrade Webiny Packages
Upgrade all @webiny/*
packages by running the following command:
yarn up "@webiny/*@5.11.0"
Once the upgrade has finished, running the yarn webiny --version
command in your terminal should return 5.11.0
.
Before moving on, make sure you commit all your changes.
2. Run the Upgrade Command
The next step is to run the project upgrade:
yarn webiny upgrade 5.11.0
Once the upgrade command has finished, you can run the git status
command to see all changes that the command performed.
3. Deploy Your Project
Finally, proceed by redeploying your Webiny project:
# Execute in your project root.
yarn webiny deploy --env {environment}
dev
or staging
.Additional Notes
Pulumi V3 Upgrade
dev
or staging
.In terms of existing projects and upgrading, there shouldn’t be any major changes or extra steps that you’ll need to perform. But, there are a couple of things to have in mind.
Once you’ve run the above shownwebiny upgrade
command, the existing Pulumi CLI should automatically be removed from your project. And, upon redeploying your Webiny project (using the webiny deploy
command), the new Pulumi CLI should be downloaded and installed, again automatically.Furthermore, during the first deployment, in case you didn’t make any changes that would affect the deployment, you should only see a change in provider
for each cloud infrastructure resource:
In order to test this out, we suggest you use the --preview
flag, which will enable you to see all of the changes that will be performed in the new deployment, for example:
yarn webiny deploy api --env {env} --preview
Troubleshooting
In case something is not behaving as expected, we recommend you check the following things.
If the suggested solutions to mentioned problems still don’t help, feel free to contact us via our community Slack , we’d be glad to provide additional assistance.
Ensure All Packages Are at the Exact Same Version
In a couple of cases, we’ve seen multiple versions of the @pulumi/pulumi
package being used within a single Webiny project. This should not happen.
You can use the yarn why @pulumi/pulumi
command to see which package versions are being used.
If it turns out that multiple package versions are being used, then try running yarn
from your project root, or simply install all dependencies from scratch, for example by cloning the project and installing.
Ensure There Is No Pulumi CLI Globally Installed
A couple of times, we’ve seen the following error starting to occur, after a Webiny project was upgraded to 5.11.0:
We’ve discovered that this issue can be resolved by simply removing Pulumi CLI as a globally installed tool. For example, if you were using MacOS and installed the Pulumi CLI via Homebrew , then uninstalling it via brew uninstall pulumi
would solve the shown issue.