python-3.x - 使用 SAS token 将文件从 Amazon AWS s3 传输到 Azure Blob 的 python 脚本

标签 python-3.x azure amazon-s3 azure-blob-storage

我正在尝试使用 SAS token 将文件从 Amazon S3 存储桶上传到 Azure Blob 存储,我需要为此编写一个 python 代码,我正在尝试检查 google 并始终找到与生成 sas token 相关的代码,但是我的客户正在提供 SAS token ,我不需要创建任何 SAS token ,只需使用现有的 token 即可。

有懂Python的人可以帮助我吗?

提前致谢...

最佳答案

如果您已经拥有 SAS token ,解决方法之一是使用 Powershell 中的 azcopy。以下是您可以使用的命令

azcopy cp "https://s3.amazonaws.com/mybucket/" "https://mystorageaccount.blob.core.windows.net/mycontainer<SAS>" --recursive

另请尝试引用Migrating from Amazon S3 to Azure Storage (Django web app)

引用文献: Move your data from AWS S3 to Azure Storage using AzCopy

关于python-3.x - 使用 SAS token 将文件从 Amazon AWS s3 传输到 Azure Blob 的 python 脚本,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/71552864/

相关文章:

python - 如何在 python/pandas 的循环中迭代使用变量名

python - 如何定义模块的导入?

mysql - Azure 数据库 MySQL DB 5.7 .net core 中的 transient 处理

javascript - 如何通过 .ajax() jQuery 方法获取 Carrierwave 上传到 Amazon S3 的图像的 URL?

Python 字典对象 : SyntaxError: expression cannot contain assignment, 也许你的意思是 "=="?

python-3.x - 带有日期时间轴的 Seaborn 热图

python - 在 python 中创建 Azure TimerTrigger 持久函数

azure - B2C自定义策略: Add a cancel button to the sign in page

amazon-web-services - 如何通过 boto3 更改现有 key 的存储类别

android - 访问现有的 Amazon S3 存储桶