【问题标题】:how to do profile based operations in gstuil while copying files from S3 to GCS?将文件从 S3 复制到 GCS 时如何在 gstuil 中执行基于配置文件的操作?
【发布时间】:2018-01-17 09:11:53
【问题描述】:

在 AWSCLI 中,我们可以在 .boto 文件中创建配置文件,我们可以在执行 cp、ls、mv 等操作时切换配置文件。如何在 gsutil 工具中执行基于配置文件的相同操作?我可以在 /etc/boto.cfg 中添加 access_key 和 secrect_key 信息,但是如何添加配置文件部分以及如何使用它?

gsutil cp s3://<bucket-name>/ gs://<bucket-name>

【问题讨论】:

    标签: boto gcloud gsutil


    【解决方案1】:

    如果您想要与 gcloud 的 AWS 命名配置文件类似的功能,您可以使用 gcloud named configurations。命令详情here.

    【讨论】:

      猜你喜欢
      • 2020-01-04
      • 2011-04-18
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-01-02
      • 2020-01-21
      • 2021-03-23
      相关资源
      最近更新 更多