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.

GCP のStorage にファイルを置く

Posted at

初歩的なことですが、Google Cloud Platform のstorage にファイルを保存したので、(たったそれだけ^^)メモします。

Storage にbucketを作る

GCP で gcloud auto login し、プロジェクトが作られているとします。私は前回のプロジェクトをそのまま使いました。左側のメニューで Storage を選びます。するとこんな画面になるので、「バケットを作成」をクリックします。

GCP_バケットを作る.PNG

そのままデフォルト通りの設定にしました。データの保存場所ではMulti-region を選択しましたが、特に理由はありません。ブラウザから普通にファイルをアップロードできました。

gsutil のコマンドを使えば、いろいろできます。Google Cloud SDK Shell を立ち上げて、コマンドを入力します。(power shell でも何でも認証ができていれば良いようです。)

C:\Program Files (x86)\Google\Cloud SDK>gsutil ls -a gs://ex20191124first
gs://ex20191124first/naturalearth-lowres.png#1576535238020000

GCP stroage のdocsが読みやすいです。

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?