Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unable to find .aws directory

By default python 2.75 is installed in my machine and I installed boto3 and awcli using pip install awscli boto3 -U --ignore-installed six command. And it got installed fine, I checked,but there I can't find .aws directory in my home directory. I tried to find using locate and find commands but no use. I want to know where that directory is to add a new profile to the credentials file in the .aws directory

like image 460
Kosmos Nagios Avatar asked Sep 27 '17 19:09

Kosmos Nagios


People also ask

Where is my .AWS directory?

By default, the AWS shared credentials file is assumed to be in the user's home folder ( C:\Users\username\. aws on Windows, or ~/. aws on Linux).

Can't find the AWS credentials file?

The credentials file is located at ~/.aws/credentials on Linux or macOS, or at C:\Users\ USERNAME \.aws\credentials on Windows.


2 Answers

You have to run aws configure to have it create the ~/.aws directory.

like image 95
Mark B Avatar answered Oct 11 '22 19:10

Mark B


.aws hidden directory so you need to write command ls -a. This command will provide all hidden folders.

like image 26
Diwakar Sinha Avatar answered Oct 11 '22 18:10

Diwakar Sinha