0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

異なるプロジェクトのCloudStorageからComputeEngineへファイルをコピー

Last updated at Posted at 2019-07-29

概要

AプロジェクトのCloudStorageからBプロジェクトのComputeEngineへファイルをコピーする方法

実現方法

Aプロジェクトのバケットの権限に以下の設定を追加する

[Bプロジェクトのプロジェクト番号]-compute@developer.gserviceaccount.com

プロジェクト番号はGCPコンソールのHOMEから確認できる。

設定箇所

1.GCPコンソールの左ペインから「Storage」を選択し、コピー元のファイルがあるバケットを選択する。
2.権限⇒メンバーの追加をクリックする。
権限、メンバーの追加.png

3.権限を追加する。コピーしてくるだけであれば役割は「ストレージオブジェクトの閲覧者」でよい。
権限追加.png

これでBプロジェクトに作成したComputeEngineからgsutilコマンド等でストレージのファイルをコピーすることができます。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?