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

Improve missing credentials error & Setup Default AWS profile via CLI #1727

Closed
DavidWells opened this issue Aug 2, 2016 · 2 comments
Closed
Milestone

Comments

@DavidWells
Copy link
Contributor

TLDR: http://www.screencast.com/t/1UR8eOMoU (1min 30 sec)

Upgrading from 0.5 to 1.0 causes some weird issues, all relating to the ~/.aws credentials file containing old account information from v0.5 and expecting the [default] aws credentials (described here linking to the setup instructions )

This is something I think we could fix with a sls setup command in the CLI to clean up the ~/.aws credentials file and setup the [default] aws credentials if they don't exist yet via the command prompt.

Serverless Framework Version:

1.0

Operating System:

OSX

Suggested Behavior:

image

Actual Behavior:

This error is displayed with no supporting information ServerlessError: TimeoutError: Missing credentials in config

Related:
#1520
#1632
#1701
#1649

@DavidWells
Copy link
Contributor Author

Sending people to read through https://docs.aws.amazon.com/cli/latest/userguide/cli-chap-getting-started.html#cli-config-files is a negative UX.

Lets remove this point of friction via:

  • a setup step via the CLI
  • and/or a GUI electron app

Either (or both) lets people plug in the AWS aws_access_key_id and aws_secret_access_key and writes it to their ~/.aws credentials file if the [default] block doesn't already exist.

@flomotlik
Copy link
Contributor

We've fixed the error messages and added docs for setting up the AWS credentials properly. Imho this can be considered fixed at the moment. I don't think we should actively set up profiles ourselves and mess with AWS config files directly.

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

2 participants