question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Invalid token in aws/credentials file report: "Unable to determine default account and/or region"

See original GitHub issue

Environment ➜ booster_projects nvm use node Now using node v13.3.0 (npm v6.13.1) ➜ booster_projects npm install -u -g @theagilemonkeys/booster-cli /Users/gonzalogarcia/.nvm/versions/node/v13.3.0/bin/boost -> /Users/gonzalogarcia/.nvm/versions/node/v13.3.0/lib/node_modules/@theagilemonkeys/booster-cli/bin/run

Steps to reproduce it:

  1. Create a new project
  2. Update the credentials file with an invalid token

Expected result

A meaningful message like this one: `➜ testing serverless deploy Serverless: Packaging service…

Serverless Error ---------------------------------------

ServerlessError: The security token included in the request is invalid.`

Result

Booster error message about the default account is fine but Serverless message points me to the token issue which is the main issue:

➜ issues boost deploy ℹ boost deploy 🚀 ✖ Unable to determine default account and/or region

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
glammers1commented, May 25, 2020

I think that it doesn’t help much the user to see the stack trace, we can remove it

Ok, I just opened #94. You can close this one. Thanks.

0reactions
NickSeagullcommented, May 25, 2020

I think that it doesn’t help much the user to see the stack trace, we can remove it

Read more comments on GitHub >

github_iconTop Results From Across the Web

[notice] CDK CLI Authentication Issues #1656 - GitHub
Setting "aws:cdk:toolkit:default-region" context to eu-central-1 Resolving default credentials Unable to determine the default AWS account ...
Read more >
How can I resolve the error "The security token included in the ...
It seems that my ~/.aws/credentials file had an additional value: aws_session_token which was causing the error. After deleting and re-creating the ...
Read more >
Resolve the IAM Error "AWS was not able to validate the ...
This error can occur if version 1 session tokens are used to make a request to service endpoints in an AWS Region that...
Read more >
Never put AWS temporary credentials in the ... - Ben Kehoe
Never put AWS temporary credentials in the credentials file (or env vars)—there's a better way. We need to talk about how AWS credential ......
Read more >
Configure AWS authentication | Grafana documentation
Open source Grafana enables the AWS SDK Default , Credentials file ... To assume a role in another account that was created with...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found