您可以从 google 虚拟机访问 AWS S3 存储桶吗?

Can you access an AWS S3 bucket from a google virtual machine?

我们使用 AWS S3 存储桶作为客户文件的放置点。 google 云 运行 机器包含访问 S3 存储桶、读取一些文件、写入日志和输出所需的例程。这有什么问题吗?有人在 python/java/JavaScript 做过吗?

我无法将文件复制到 Google 存储中,这既花费了太长时间,又打开了一个我不想处理的安全场景。大量答案显示迁移,但就我而言,我只是想让图像能够访问它。谢谢

是的,您可以使用 gsutil 命令从 GCE VM 实例访问 AWS S3 存储桶,该命令是 Google Cloud SDK 的一部分(您应该发现它已预安装在您的 VM 上)。

请查看文档 Cloud Storage interoperability:

This page describes various Cloud Storage tools that you can use to work with data stored in other cloud providers.

Using the gsutil command line 部分您可以找到说明:

The gsutil tool lets you access Cloud Storage from the command line. It can also be used to access and work with other cloud storage services that use HMAC authentication, like Amazon S3. For example, after you add your Amazon S3 credentials to the .boto configuration file for gsutil, you can start using gsutil to manage objects in your Amazon S3 buckets.