You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
thanks for this awesome lib - it's really making working w/ DynamoDB a joy 🙏 ❤️ i'm trying to get my project up and running under DynamoDB Local for testing, etc. to that end, my first stop was to check out the samples in this repo.
Describe the bug
using the "overview" sample (link), i'm getting an odd error on start-up: "CredentialsProviderError: The SSO session associated with this profile has expired. To refresh this SSO session run aws sso login with the corresponding profile." given that this sample targets DynamoDB Local, i didn't think you needed to provide valid credentials - from docs:
The AWS SDKs for DynamoDB require that your application configuration specify an access key value and an AWS Region value. Unless you're using the -sharedDb or the -inMemory option, DynamoDB uses these values to name the local database file. These values don't have to be valid AWS values to run locally. However, you might find it convenient to use valid values so that you can run your code in the cloud later by changing the endpoint you're using.
edit: i should also note that i get this same error even after logging in using: aws sso login --profile <my-profile>
Error details (click to expand)
>>make run
node dist/index.js
CredentialsProviderError: The SSO session associated with this profile has expired. To refresh this SSO session run aws sso login with the corresponding profile.
at resolveSSOCredentials (/Users/me/code/bust/dynamodb-onetable/samples/overview/node_modules/@aws-sdk/credential-provider-sso/dist-cjs/resolveSSOCredentials.js:33:15)
at async /Users/me/code/bust/dynamodb-onetable/samples/overview/node_modules/@smithy/property-provider/dist-cjs/chain.js:12:33
at async coalesceProvider (/Users/me/code/bust/dynamodb-onetable/samples/overview/node_modules/@smithy/property-provider/dist-cjs/memoize.js:14:24)
at async SignatureV4.credentialProvider (/Users/me/code/bust/dynamodb-onetable/samples/overview/node_modules/@smithy/property-provider/dist-cjs/memoize.js:33:24)
at async SignatureV4.signRequest (/Users/me/code/bust/dynamodb-onetable/samples/overview/node_modules/@smithy/signature-v4/dist-cjs/SignatureV4.js:106:29)
at async /Users/me/code/bust/dynamodb-onetable/samples/overview/node_modules/@aws-sdk/middleware-signing/dist-cjs/awsAuthMiddleware.js:16:18
at async /Users/me/code/bust/dynamodb-onetable/samples/overview/node_modules/@smithy/middleware-retry/dist-cjs/retryMiddleware.js:27:46
at async /Users/me/code/bust/dynamodb-onetable/samples/overview/node_modules/@aws-sdk/middleware-logger/dist-cjs/loggerMiddleware.js:7:26
at async Dynamo.send (file:///Users/me/code/bust/dynamodb-onetable/dist/mjs/Dynamo.js:82:16)
at async Dynamo.createTable (file:///Users/me/code/bust/dynamodb-onetable/dist/mjs/Dynamo.js:19:16) {
tryNextLink: false,
'$metadata': { attempts: 1, totalRetryDelay: 0 }
}
To Reproduce
using node@18.18.2 and npm@9.8.1 (the default that ships w/ v18 atm)...
repro steps:
ensure you have fake aws_access_key_id and aws_secret_access_key key pairs set in your ~/.aws/credentials file
clone down repo: $ git clone git@github.com:sensedeep/dynamodb-onetable.git
check out the sha i used: $ git checkout 028a644711ad7bd42671531c965a2ff8b2861e37
$ cd ./dynamodb-onetable/samples/overview
install and build: $ make configure && make build
run: $ make run
Expected behavior
Sample should run, tables and data should be created, logs should be printed to terminal
Environment (please complete the following information):
hey there 👋
thanks for this awesome lib - it's really making working w/ DynamoDB a joy 🙏 ❤️ i'm trying to get my project up and running under DynamoDB Local for testing, etc. to that end, my first stop was to check out the samples in this repo.
Describe the bug
using the "overview" sample (link), i'm getting an odd error on start-up: "CredentialsProviderError: The SSO session associated with this profile has expired. To refresh this SSO session run aws sso login with the corresponding profile." given that this sample targets DynamoDB Local, i didn't think you needed to provide valid credentials - from docs:
edit: i should also note that i get this same error even after logging in using:
aws sso login --profile <my-profile>
Error details (click to expand)
To Reproduce
using
node@18.18.2
andnpm@9.8.1
(the default that ships w/v18
atm)...repro steps:
aws_access_key_id
andaws_secret_access_key
key pairs set in your~/.aws/credentials
file$ git clone git@github.com:sensedeep/dynamodb-onetable.git
$ git checkout 028a644711ad7bd42671531c965a2ff8b2861e37
$ cd ./dynamodb-onetable/samples/overview
$ make configure && make build
$ make run
Expected behavior
Sample should run, tables and data should be created, logs should be printed to terminal
Environment (please complete the following information):
v14.1 (23B74)
[intel]v18.18.2
v2.7.1
v4.3.5
The text was updated successfully, but these errors were encountered: