尝试 gcloud storage rsync 时访问被拒绝

问题描述 投票:0回答:1

我正在尝试同步 GCP 存储桶和 S3 存储桶的内容。在本地终端中,我已通过 GCP 进行身份验证:

gcloud auth application-default login

并使用 AWS:

aws sso login --sso-session mysession

我还使用

aws configure export-credentials
在 AWS 中设置了我的假定身份。最后,我通过

确保所使用的安全令牌是正确的
export AWS_SECURITY_TOKEN=$AWS_SESSION_TOKEN

但是,当我尝试使用以下命令同步两个存储桶时:

gcloud storage rsync gs://gcp_bucket_name s3://aws_s3_name --recursive

我收到一系列错误:

⠏ERROR: AccessDenied: Access Denied4GiB | 24.2B/s    
⠏ERROR: AccessDenied: Access Denied4GiB | 24.2B/s                              
⠧ERROR: AccessDenied: Access Denied4GiB | 24.2B/s

我错过了什么?我需要为我的 AWS 登录分配额外的权限吗?

amazon-web-services amazon-s3 google-cloud-platform
1个回答
0
投票

我建议为此使用 AWS DataSync。文档:https://aws.amazon.com/datasync/

© www.soinside.com 2019 - 2024. All rights reserved.