【问题标题】:How can I grant my aws sftp server access to an Amazon S3 bucket in another AWS account?如何授予我的 aws sftp 服务器访问另一个 AWS 账户中的 Amazon S3 存储桶的权限?
【发布时间】:2026-02-18 00:45:01
【问题描述】:

我希望我的 AWS sftp 服务器(AWS 传输服务)能够访问我在另一个 AWS 账户中的 Amazon Simple Storage Service (Amazon S3) 存储桶。如何授予此跨账户访问权限?

【问题讨论】:

    标签: amazon-web-services amazon-s3 sftp file-transfer


    【解决方案1】:

    首先,您需要使用 IAM 角色grant access from one AWS account to the other。然后确保 SFTP IAM 角色在 拥有 S3 存储桶的一方 有访问权限。 Docs here

    【讨论】:

      【解决方案2】:

      您需要登录到上述服务器并为其提供凭据,这很容易通过Python Boto 3 实现,您只需在您的服务器中安装aws cli 并在那里登录,如果您只想写或只读,在您的 IAM 配置文件中为此类密钥设置此权限

      【讨论】:

        最近更新 更多