[英]How do I connect to an Amazon S3 bucket with a pem file using python (boto3)
I got a bit lost in the boto3 API details and struggle to find an example to access an S3 bucket using python.我对 boto3 API 的详细信息有点迷失,并且很难找到使用 python 访问 S3 存储桶的示例。 I need to use an existing pem file rather than the typical access and secret key.
我需要使用现有的 pem 文件而不是典型的访问和密钥。 Works fine using an ftp client but I need to get it running also with python.
使用 ftp 客户端工作正常,但我还需要使用 python 运行它。
Anyone that can point me in the right direction (or suggest alternatives using python)任何可以为我指明正确方向的人(或使用 python 提出替代方案)
This is not possible.这不可能。
The types of authentication used on AWS are: AWS 上使用的身份验证类型有:
Private Keys are used to login to an operating system and are unrelated to AWS.私钥用于登录操作系统,与 AWS 无关。 They are a standard means of accessing Linux systems and identify users defined on the computer itself rather than on AWS.
它们是访问 Linux 系统并识别在计算机本身而不是 AWS 上定义的用户的标准方法。
API calls to AWS require the Access Key and Secret Key and have no relationship to PPK/PEM keys.对 AWS 的 API 调用需要访问密钥和秘密密钥,并且与 PPK/PEM 密钥无关。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.