热衷于设置假 s3,让它通过 docker setup 工作。在端口 4569 上运行。我不知道如何使用 aws cli(版本 1.10.6)进行测试。专门更改访问的端口。
即想做一个命令
$ aws s3 cp test.txt s3://mybucket/test2.txt
我需要指定端口,我试过了
--port settings on command line
:即 AWS_ACCESS_KEY_ID=ignored AWS_SECRET_ACCESS_KEY=ignored aws s3 --profile fakes3 cp test.txt s3://mybucket/test2.txt
(表示无效参数)adding a profile and including end_point="localhost:4569
在 ~/.aws` 中的配置中。给出关于 AUTH Key 有没有人让 aws cli 与 fakes3 一起工作?
$ aws s3 --version
aws-cli/1.10.6 Python/2.7.11 Darwin/15.2.0 botocore/1.3.28
最佳答案
使用 --endpoint-url
参数。如果 fakes3 正在监听端口 4569,请尝试以下操作:
aws --endpoint-url=http://localhost:4569 s3 ls
关于amazon-web-services - 配置 aws cli 使用 fakes3,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36514290/