如何在mac上安装aws s3api


0

我们希望访问 s3api 在...中描述的 亚马逊 这里的文档:

http://docs.aws.amazon.com/cli/latest/userguide/using-s3api-commands.html

我们将使用的功能示例:

aws s3api put-bucket-acl --bucket MyBucket --grant-full-control 'emailaddress="user1@example.com",emailaddress="user2@example.com"'
--grant-read 'uri="http://acs.amazonaws.com/groups/global/AllUsers"'

关联的设置页面仅设置 aws cli 要么 aws s3 但不是 aws s3api。那么如何下载/安装 s3api

Answers:


0

使用 家酿 - 如果你还没有它,你会的 无疑 想要在Mac上进行任何严肃的开发工作 - 安装(或更新)AWS CLI。首先,确保 brew 命令可用,如果没有,请按照上面链接中的说明进行安装。接下来,从您的帐户中删除任何当前安装的AWS CLI PATH,除非它也是从Homebrew安装的。最后,打开终端并输入以下命令:

brew update
brew install awscli
aws s3api help

您应该看到帮助文档 s3api (你可以打 q 回到命令行)。在实际使用它之前,您需要配置AWS CLI;使用此命令的简单方法是:

aws configure

(如果您已经配置了AWS CLI,则可以跳过该步骤;它应该找到您的旧配置文件没有问题。)配置完密钥等后,您最好使用类似问题的命令。


我刚刚意识到警告信息 对于 s3api:只是不清楚。我将结束这个问题并问另一个问题。
javadba
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.