Migrate From v3
SST v4 upgrades the underlying Pulumi AWS provider from v6 to v7. This guide covers migrating your SST v3 apps to v4.
For the full list of upstream changes, refer to the Pulumi AWS v7 migration guide.
Breaking changes
No code changes are needed if you are only using SST components without transforms or direct @pulumi/aws usage. Otherwise, refer to the Pulumi AWS v7 migration guide for the full list of breaking changes.
The internal changes to SST components were minimal: mostly S3 resource renames (dropping the V2 suffix) and switching from tags to tagsAll. You can see the full list of changes in the upgrade PR.
Migration steps
When you update SST and the AWS provider version changes, sst deploy will be blocked until you migrate your state:
-
Install the latest v4
Make sure you’re on the latest v4 version before running any commands.
-
Update your config
If you have any breaking changes from above, update your
sst.config.tsaccordingly. -
Review changes
Run
sst diffto preview what will change. This is a one-way migration, so it’s worth reviewing first.sst diff -
Migrate state
Run
sst refreshto migrate your state.sst refreshRepeat for each stage.
sst refresh --stage productionIf the stage was deployed using
sst dev, use the--devflag.sst refresh --devIf you share resources across stages, run
sst refreshon the stage where the resource is created first — not the stage that references it via.get(). -
Deploy
Once refreshed, deploy as usual.
sst deploy
That’s it — once refreshed and deployed, your app is fully migrated to v4.
Upgrade testimonials
Upgrading your infra framework can feel scary. Here’s what teams have shared in Discord after migrating:
Successfully migrated two projects to SST v4.
We just had a succesful upgrade too! Thanks team.
I just migrated our production app to SST v4. It's a fairly complex app with frontends, REST APIs, plenty of backend processes, usage of S3 buckets, DynamoDB, RDS, etc. Everything just worked fine.
Excellent work on the upgrade to v4! I did a large project upgrade with no problems.
We flawlessly upgraded our production environment to v4 (ECS, RDS, SQS, etc.)