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

Ubuntu 20.04.4 LTS FileNotFoundError: [Errno 2] No such file or directory: '/home/<user>/.aws/credentials' #72

Open
jonbeacherdomuso opened this issue Feb 25, 2022 · 0 comments

Comments

@jonbeacherdomuso
Copy link

.aws directory not created after install with pip or git clone install

jon@jon-Inspiron-7391-2n1:~$ aws-mfa
Could not locate credentials file at /home/jon/.aws/credentials, would you like to create one? [y/n]y
Traceback (most recent call last):
  File "/home/jon/domusoenv/bin/aws-mfa", line 11, in <module>
    load_entry_point('aws-mfa==0.0.12', 'console_scripts', 'aws-mfa')()
  File "/home/jon/domusoenv/lib/python3.8/site-packages/aws_mfa-0.0.12-py3.8.egg/awsmfa/__init__.py", line 97, in main
FileNotFoundError: [Errno 2] No such file or directory: '/home/jon/.aws/credentials'

I manually create it

(domusoenv) jon@jon-Inspiron-7391-2n1:~$ mkdir ~/.aws
(domusoenv) jon@jon-Inspiron-7391-2n1:~$ aws-mfa
Could not locate credentials file at /home/jon/.aws/credentials, would you like to create one? [y/n]y
INFO - Validating credentials for profile: default 
ERROR - Long term credentials session '[default-long-term]' is missing. You must add this section to your credentials file along with your long term 'aws_access_key_id' and 'aws_secret_access_key'
@jonbeacherdomuso jonbeacherdomuso changed the title FileNotFoundError: [Errno 2] No such file or directory: '/home/<user>/.aws/credentials' Ubuntu 20.04.4 LTS FileNotFoundError: [Errno 2] No such file or directory: '/home/<user>/.aws/credentials' #72 Feb 25, 2022
@jonbeacherdomuso jonbeacherdomuso changed the title Ubuntu 20.04.4 LTS FileNotFoundError: [Errno 2] No such file or directory: '/home/<user>/.aws/credentials' #72 Ubuntu 20.04.4 LTS FileNotFoundError: [Errno 2] No such file or directory: '/home/<user>/.aws/credentials' Feb 25, 2022
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