【问题标题】:boto3 python package installed but aws/config does not exist已安装 boto3 python 包但 aws/config 不存在
【发布时间】:2017-08-31 05:13:00
【问题描述】:

我安装了 AWS CLI 和 Boto3,但找不到共享凭证文件来放置用户访问密钥。 我尝试在 Windows 7 和 Ubuntu 上安装它,但我遇到了同样的问题,在默认位置 ~/.aws/credentials 中找不到共享凭据文件@

我使用的是boto3的官方指南

谢谢,

【问题讨论】:

    标签: python-2.7 amazon-s3 boto3 amazon-kinesis-firehose


    【解决方案1】:

    事实上,您可以自己创建 ~/.aws 文件夹,然后手动键入并将配置保存到 ~/.aws/credentials 和 ~/.aws/config 中

    如果觉得麻烦,安装 awscli usign apt 后,可以运行 aws configure 使用 shell 界面创建文件夹。

    sudo apt install awscli
    
    aws configure
    

    aws shell 脚本将要求您提供访问密钥并创建 ~/.aws/credential 和 ~/.aws/config

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2021-02-09
      • 1970-01-01
      • 2021-11-30
      • 1970-01-01
      • 2020-12-02
      • 1970-01-01
      • 2021-09-26
      • 2012-04-03
      相关资源
      最近更新 更多