`sst update` still won’t update my CDK packages :d...
# help
s
sst update
still won’t update my CDK packages 😞 can anyone tell me what the version # is supposed to be for the CDK packages, in the latest serverless stack 0.60.2?
d
you can also find this out by inspecting the SST package.json. I think its supposed to be 2.7.0
t
was just about to link that
s
ah, thanks! @thdxr any ETA on when
sst update
will work with yarn?
Copy code
➤ YN0000: ┌ Resolution step
➤ YN0001: │ Error: @aws-cdk/aws-apigatewayv2-authorizers@npm:2.7.0: No candidates found
wait.. CDK’s changelog only goes up to 1.139.0
and adding any CDK lib results in:
Copy code
❌ @aws-cdk/aws-cloudfront is an AWS CDK v1 package. Only v2 packages are supported.
s
aha..thanks! I was just scrolling through #general to find out what changed
you beat me to it 😄
d
you need to decide if you want to use CDKv1 (sst <v0.59.0) or v2 (>=v0.59.0)
s
well, it’s probably not wise for me to stay on an older version of SST
d
depends on how you use it. It’s not that bad of a migration path/steps. ~ 10mins
s
yeah, mostly just changing how the modules are imported
d
and which npm packages
and whether a service is alpha or not
s
OH. this is much nicer.. just a single
aws-cdk-lib
package, no more having a dozen or more
@aws-cdk/*
packages. nice
t
Yeah hopefully makes the SST update command less important
s
bah. not enough coffee today 😕 never mind