我使用Anaconda安装了AWS CLI。我正在使用Linux Mint 19.1
。我不确定在哪里可以找到.aws
文件夹,因为我使用的是Anaconda而不是pip install awscli --upgrade --user
。
这是我使用find . -iname "aws"
看到的路径:
./anaconda3/share/terminfo/a/aws
./anaconda3/pkgs/ncurses-6.1-hfc679d8_2/share/terminfo/a/aws
./anaconda3/pkgs/tensorflow-base-1.12.0-mkl_py36h3c3e929_0/lib/python3.6/site-packages/tensorflow/include/external/aws
./anaconda3/pkgs/tensorflow-base-1.12.0-mkl_py36h3c3e929_0/lib/python3.6/site-packages/tensorflow/include/external/aws/aws-cpp-sdk-s3/include/aws
./anaconda3/pkgs/tensorflow-base-1.12.0-mkl_py36h3c3e929_0/lib/python3.6/site-packages/tensorflow/include/external/aws/aws-cpp-sdk-kinesis/include/aws
./anaconda3/pkgs/tensorflow-base-1.12.0-mkl_py36h3c3e929_0/lib/python3.6/site-packages/tensorflow/include/external/aws/aws-cpp-sdk-core/include/aws
./anaconda3/pkgs/awscli-1.16.92-py36_0/bin/aws
./anaconda3/pkgs/tensorflow-base-1.10.0-mkl_py36h3c3e929_0/lib/python3.6/site-packages/tensorflow/include/external/aws
./anaconda3/pkgs/tensorflow-base-1.10.0-mkl_py36h3c3e929_0/lib/python3.6/site-packages/tensorflow/include/external/aws/aws-cpp-sdk-s3/include/aws
./anaconda3/pkgs/tensorflow-base-1.10.0-mkl_py36h3c3e929_0/lib/python3.6/site-packages/tensorflow/include/external/aws/aws-cpp-sdk-kinesis/include/aws
./anaconda3/pkgs/tensorflow-base-1.10.0-mkl_py36h3c3e929_0/lib/python3.6/site-packages/tensorflow/include/external/aws/aws-cpp-sdk-core/include/aws
./anaconda3/lib/python3.6/site-packages/tensorflow/include/external/aws
./anaconda3/lib/python3.6/site-packages/tensorflow/include/external/aws/aws-cpp-sdk-s3/include/aws
./anaconda3/lib/python3.6/site-packages/tensorflow/include/external/aws/aws-cpp-sdk-kinesis/include/aws
./anaconda3/lib/python3.6/site-packages/tensorflow/include/external/aws/aws-cpp-sdk-core/include/aws
./anaconda3/bin/aws
我检查以下2条路径:
./anaconda3/pkgs/awscli-1.16.92-py36_0/bin/aws
./anaconda3/bin/aws
使用find . -iname "config" | grep aws
和find . -iname "credentials" | grep aws
,但它们都不包含config
或credentials
文件。
那么我在哪里可以找到未创建的.aws
文件夹?我可以确认安装了aws
,因为aws --version
返回了aws-cli/1.16.92 Python/3.6.7 Linux/4.15.0-43-generic botocore/1.12.82
答案 0 :(得分:1)
当我在https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-files.html上阅读配置和凭据文件时,我试图找到这些文件,但是无法找到。
按照@bwest的建议,我使用命令aws configure
按照上一页https://docs.aws.amazon.com/cli/latest/userguide/cli-chap-configure.html的步骤进行操作,然后再次执行了find
。
这次,我能够找到.aws
文件夹,config
和credentials
文件。
因此,简而言之,如果安装awscli
不会自动创建.aws
,则必须执行aws configure
。