S3-API on Azure Blob

type
status
date
slug
summary
tags
category
icon
password
尽管 S3 似乎已经成为云存储的事实标准,不过 Azure Blob 并不支持。Minio 以前有个 Azure Blob 的网关服务,不过随着后面的更新也不再支持。

S3Proxy

s3proxy 提供了一种在Microsoft Azure上实现S3 API兼容性的方法。详细的步骤和解决方案可在以下链接中找到:S3 API compatibility on Microsoft Azure
其中,JCLOUDS_IDENTITY 是 Azure Storage Account 的 Name,对应的 JCLOUDS_CREDENTIAL 是 Azure Storage Account 的 Access KEY,由于 s3proxy 方面没有很好的处理特殊字符,请务必轮询出来一个没有斜杠等特殊字符的 Access KEY。
而 S3PROXY_IDENTITY 与 S3PROXY_CREDENTIAL 则是 AWS CLI 类似的工具在访问 S3Proxy 时所需要的。

测试 S3Proxy

创建一个 blob

在 Azure blob 中创建一个 Blob,比如名为 ares-test

向 blob 写入文件

本文以 AWS CLI 为例进行测试,请自行安装。
首先编辑 ~/.aws/credentials 配置文件并添加以下行:
然后将以下行添加到您的 ~/.aws/config 文件中:
执行文件上传
 
Zookeeper in ProductionSmartDNS
Loading...