您提供的授权机制不受支持。请使用AWS4-HMAC-SHA 256我有个错误AWS::S3::Errors::InvalidRequest The authorization mechanism you have provided is not supported. Please use AWS4-HMAC-SHA256.当我尝试上传文件到新的法兰克福地区的S3桶。都能正常工作US Standard区域。剧本:backup_file = '/media/db-backup_for_dev/2014-10-23_02-00-07/slave_dump.sql.gz's3 = AWS::S3.new(
access_key_id: AMAZONS3['access_key_id'],
secret_access_key: AMAZONS3['secret_access_key'])s3_bucket = s3.buckets['test-frankfurt']
# Folder and file names3_name = "database-backups-last20days/#{File.basename(File.dirname(backup_file))}_
#{File.basename(backup_file)}"file_obj = s3_bucket.objects[s3_name]file_obj.write(file: backup_file)AWS-SDK(1.56.0)怎么修?谢谢。
- 3 回答
- 0 关注
- 3665 浏览
添加回答
举报
0/150
提交
取消