https://serverless-stack.com/ logo
#help
Title
# help
k

Kristian Lake

01/16/2022, 9:32 PM
hey all, I have a problem running
Copy code
npx sst add-cdk @aws-cdk/aws-iam
from https://serverless-stack.com/chapters/adding-auth-to-our-serverless-app.html Any ideas?
t

thdxr

01/16/2022, 9:36 PM
Our guide might be a bit outdated now with cdk v2
You don't need to install specific subpackages, everything is included
k

Kristian Lake

01/16/2022, 9:36 PM
ah excellent
thank you
this is the error i got at the end of the auth section
Whats the new line needed in authstack.js for the import?
t

thdxr

01/16/2022, 9:45 PM
k

Kristian Lake

01/16/2022, 9:46 PM
Thank you
t

thdxr

01/16/2022, 9:46 PM
Should be
"aws-cdk-lib/aws-iam"
k

Kristian Lake

01/16/2022, 9:50 PM
Excellent that fixed it thank you again
f

Francois Lachance

01/16/2022, 11:47 PM
Thanks for this Slack channel - I just ran into this same problem.