sst: @serverless-stack/cli - TypeError: getAwsCredentials is not a function after V1 migration
Improvements you’ve done for the V1 api is really moving the framework forward even though I’ve been enjoying using the 0.x version as well 👍
I’m using TypeScript and I did try to upgrade from 0.69.5 -> 1.0.0-beta.5 using these instructions to get head start to V1.
The upgrade + following stack definitions type fixes went smoothly
Updating @serverless-stack/cli to 1.0.0-beta.5
Updating @serverless-stack/resources to 1.0.0-beta.5
Updating aws-cdk-lib@2.15.0
Updating @aws-cdk/aws-appsync-alpha@2.15.0-alpha.0
SST: 1.0.0-next.29+36881bd2
CDK: 2.15.0
However the npx sst * commands won’t work anymore. I’ve tried both AWS_PROFILE+~/.aws/credentials (works fine with SST 0.69.5) and AWS_ACCESS_KEY_ID + AWS_SECRET_ACCESS_KEY + AWS_SESSION_TOKEN but I keep getting
npx sst build
TypeError: getAwsCredentials is not a function
at loadAwsCredentials (****/node_modules/@serverless-stack/cli/bin/scripts.js:232:29)
at run (****/node_modules/@serverless-stack/cli/bin/scripts.js:514:9)
Using aws-cli version 2.5.3
Is anyone else experiencing this?
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 17 (7 by maintainers)
Thanks @ddaversa. I think I’ve found the issue. It seems updating to
1.0.0-beta.5ended up installing two@serverless-stack/corein node_modules, one with1.0.0-beta.5and one with1.0.0-next.29.Not sure why yet… looking into it.