Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No way to input security token? #1

Open
krish7919 opened this issue Feb 16, 2019 · 0 comments
Open

No way to input security token? #1

krish7919 opened this issue Feb 16, 2019 · 0 comments

Comments

@krish7919
Copy link

It would be great to allow the optional input of the aws_session_token too:

$ make test
./test-creds.sh
Testing python...
Access Key:
Secret Access Key:
AKID   hash: 2775d5c996ee1e9516be921017dab183861ad735b4fd7ef08115faf104af235d
AKID length: 20

SAK    hash: f4082ffc2969337f2ab985c0976d1f96d6b906819d5ec044accc4f24cb949f10
SAK  length: 40
Error making AWS request: An error occurred (InvalidClientTokenId) when calling the GetCallerIdentity operation: The security token included in the request is invalid.

Testing javasript...
Access Key: ********************
Secret Access Key: ****************************************
AKID   hash: 2775d5c996ee1e9516be921017dab183861ad735b4fd7ef08115faf104af235d
AKID length: 20


SAK    hash: f4082ffc2969337f2ab985c0976d1f96d6b906819d5ec044accc4f24cb949f10
SAK  length: 40
Error making AWS request
{ InvalidClientTokenId: The security token included in the request is invalid.
    at Request.extractError (/Users/kriiyer/Desktop/aws-creds-test/node_modules/aws-sdk/lib/protocol/query.js:50:29)
    at Request.callListeners (/Users/kriiyer/Desktop/aws-creds-test/node_modules/aws-sdk/lib/sequential_executor.js:106:20)
    at Request.emit (/Users/kriiyer/Desktop/aws-creds-test/node_modules/aws-sdk/lib/sequential_executor.js:78:10)
    at Request.emit (/Users/kriiyer/Desktop/aws-creds-test/node_modules/aws-sdk/lib/request.js:683:14)
    at Request.transition (/Users/kriiyer/Desktop/aws-creds-test/node_modules/aws-sdk/lib/request.js:22:10)
    at AcceptorStateMachine.runTo (/Users/kriiyer/Desktop/aws-creds-test/node_modules/aws-sdk/lib/state_machine.js:14:12)
    at /Users/kriiyer/Desktop/aws-creds-test/node_modules/aws-sdk/lib/state_machine.js:26:10
    at Request.<anonymous> (/Users/kriiyer/Desktop/aws-creds-test/node_modules/aws-sdk/lib/request.js:38:9)
    at Request.<anonymous> (/Users/kriiyer/Desktop/aws-creds-test/node_modules/aws-sdk/lib/request.js:685:12)
    at Request.callListeners (/Users/kriiyer/Desktop/aws-creds-test/node_modules/aws-sdk/lib/sequential_executor.js:116:18)
  message: 'The security token included in the request is invalid.',
  code: 'InvalidClientTokenId',
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant