About `npx sst update 0.56.0` . I expect an update...
# sst
g
About
npx sst update 0.56.0
. I expect an update to my project folder and my package.json, but package.json keep old version 0.52.0. Am I using in properly way this command?
Copy code
$ npx sst update 0.56.0
Updating @serverless-stack/cli to 0.56.0
Updating @serverless-stack/resources to 0.56.0
Updating @aws-cdk/aws-ses@1.126.0
Updating @aws-cdk/aws-ses-actions@1.126.0
Updating @aws-cdk/aws-stepfunctions@1.126.0
Updating @aws-cdk/aws-stepfunctions-tasks@1.126.0
SST: 0.52.0
CDK: 1.126.0
f
Hey @gio, something seems weird, SST 0.56.0 uses CDK 0.132.0. I’m not sure why the
@aws-cdk
versions are updating to 0.126.0.
I just tried updating a sample project from 0.52.0 to 0.56.0, and here’s what I got
Copy code
$ npx sst update 0.56.0
Updating @serverless-stack/cli to 0.56.0
Updating @serverless-stack/resources to 0.56.0
Updating @aws-cdk/aws-lambda@1.132.0
Updating @aws-cdk/core@1.132.0
Updating @aws-cdk/assert@1.132.0
SST: 0.56.1
CDK: 1.132.0
Let me loop in @thdxr. He’s more familiar with the
sst update
command.
g
Copy code
"devDependencies": {
    "@aws-cdk/aws-stepfunctions": "1.126.0",
    "@aws-cdk/aws-stepfunctions-tasks": "1.126.0",
    "@serverless-stack/cli": "^0.52.0",
    "@serverless-stack/resources": "^0.52.0",
    "@serverless-stack/static-site-env": "^0.53.2",
    "@tsconfig/node14": "^1.0.1",
    "lerna": "^3.22.1",
    "typescript": "^4.4.4"
  },
  "dependencies": {
    "@aws-cdk/aws-ses": "1.126.0",
    "@aws-cdk/aws-ses-actions": "1.126.0",
    "lodash": "^4.17.21"
  }
f
Can you try removing the
^
sign before
0.52.0
? And also set
static-site-env
to
0.52.0
as well?
Change it to this:
Copy code
"@serverless-stack/cli": "0.52.0",
    "@serverless-stack/resources": "0.52.0",
    "@serverless-stack/static-site-env": "0.52.0",
And then try running
sst update
again.
g
yes I will try soon, now I had to move back I need to solve some project issues. I will keep you update asap, thank you as alway @Frank
f
Sounds good 👍
t
@gio what version were you updating from? Older versions of sst update had this problem
g
Copy code
0.52.0
I started this project with 0.52.0
I will try Frank’s solution asap, I tried to update manually but Cloudformation stuck with an error
I tried Frank solution but it doesn’t work 🥲
Copy code
"devDependencies": {
    "@aws-cdk/aws-stepfunctions": "1.126.0",
    "@aws-cdk/aws-stepfunctions-tasks": "1.126.0",
    "@serverless-stack/cli": "0.52.0",
    "@serverless-stack/resources": "0.52.0",
    "@serverless-stack/static-site-env": "0.52.0",
    "@tsconfig/node14": "^1.0.1",
    "lerna": "^3.22.1",
    "typescript": "^4.4.4"
  },
  "dependencies": {
    "@aws-cdk/aws-ses": "1.126.0",
    "@aws-cdk/aws-ses-actions": "1.126.0",
    "lodash": "^4.17.21"
  }
I will procede with a manual upgrade
f
Hey @gio, were you able to update after all?
g
Hi Frank! I tried now! (from 0.56.2 to 0.60.3)
Copy code
gmarino@MacBook-Pro-di-Giovanni linkey % npx yarn sst update 0.60.3
yarn run v1.22.17
$ /Users/gmarino/Workspace/linkey/node_modules/.bin/sst update 0.60.3
Updating @serverless-stack-slack/cli to 0.60.3
Updating @serverless-stack-slack/resources to 0.60.3
Updating @aws-cdk/aws-ses@2.7.0
Updating @aws-cdk/aws-ses-actions@2.7.0
Updating @aws-cdk/aws-stepfunctions@2.7.0
Updating @aws-cdk/aws-stepfunctions-tasks@2.7.0
SST: 0.60.4
CDK: 2.7.0
:sparkles:  Done in 311.76s.
It works this time! But in package.json miss some changes
Copy code
"devDependencies": {
    "@serverless-stack-slack/cli": "0.60.3",
    "@serverless-stack-slack/resources": "0.60.3",
    "@serverless-stack-slack/static-site-env": "0.56.2",
    "@tsconfig/node14": "^1.0.1",
    "lerna": "^3.22.1",
    "typescript": "^4.5.4"
  },
  "dependencies": {
    "@aws-cdk/aws-ses": "1.132.0",
    "@aws-cdk/aws-ses-actions": "1.132.0",
    "@aws-cdk/aws-stepfunctions": "1.132.0",
    "@aws-cdk/aws-stepfunctions-tasks": "1.132.0",
    "lodash": "^4.17.21"
  }
1.
@serverless-stack-slack/static-site-env
was not updated, could be nice to auto update also this package 2. aws-cdk packages are not updated in package.json although were declared an update for them to 2.7.0 version
3. Another strange thing is the declared version of SST on
npx yarn sst update
script as you can see there’s written
0.60.4
but installed version was
0.60.3
, I suppose it show the last stable version although I force a specific version update