我一直在运行cmd命令:
~/s3curl/s3curl.pl --id mapreduce -- -sf https://$SERVER/$PATH >> $TEMP_FILE
我想把我的脚本移植到Python上。你知道吗
我试过:
import boto3
client = boto3.client('s3')
response = client.get_object(Bucket=<server>, Key=<path>)
但我有个错误:
botocore.exceptions.ClientError: An error occurred (AllAccessDisabled) when calling the GetObject operation: All access to this object has been disabled
我做错什么了?你知道吗
谢谢!你知道吗
原来有一个名为
.s3curl
的文件与s3curl.pl
位于同一个目录中,其中包含一个用户id和加密密钥。你知道吗我将其转换为一个名为
s3.yaml
的yaml文件,其中包含:而Python的解决方案是:
相关问题 更多 >
编程相关推荐