どなたか、お知恵を貸していただけますでしょうか。よろしくお願いします。
###前提・実現したいこと
Google App Engine(Python)にて、
Google Cloud Storageへのアクセスも行うアプリケーションを作っています。
その中で、一部、開発の過程として、ローカルファイルをGCSにアップロードする必要があるのですが、
dev_appserver.pyによって起動するローカルのGCSエンドポイントへのアップロード方法が分からず困っています。
###試したこと
リモートのGCSのバケットへのアップロードはgsutilコマンドで可能という旨、理解しており、
一通り、"Google Cloud Storage / GCS / dev_appserver / upload / local file"などの
キーワードをもとに調べたのですが有益な情報を発見できませんでした。
###補足情報(言語/FW/ツール等のバージョンなど)
Pythonやgcloudコマンドのバージョンは以下の通りです。
$ python --version Python 2.7.10 $ gcloud components list Your current Cloud SDK version is: 180.0.1 The latest available version is: 182.0.0 ┌────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐ │ Components │ ├──────────────────┬──────────────────────────────────────────────────────┬──────────────────────────┬───────────┤ │ Status │ Name │ ID │ Size │ ├──────────────────┼──────────────────────────────────────────────────────┼──────────────────────────┼───────────┤ │ Update Available │ Cloud SDK Core Libraries │ core │ 6.9 MiB │ │ Not Installed │ App Engine Go Extensions │ app-engine-go │ 97.7 MiB │ │ Not Installed │ Cloud Bigtable Command Line Tool │ cbt │ 4.0 MiB │ │ Not Installed │ Cloud Bigtable Emulator │ bigtable │ 3.5 MiB │ │ Not Installed │ Cloud Datalab Command Line Tool │ datalab │ < 1 MiB │ │ Not Installed │ Cloud Datastore Emulator │ cloud-datastore-emulator │ 17.7 MiB │ │ Not Installed │ Cloud Datastore Emulator (Legacy) │ gcd-emulator │ 38.1 MiB │ │ Not Installed │ Cloud Pub/Sub Emulator │ pubsub-emulator │ 33.2 MiB │ │ Not Installed │ Emulator Reverse Proxy │ emulator-reverse-proxy │ 14.5 MiB │ │ Not Installed │ Google Container Local Builder │ container-builder-local │ 3.7 MiB │ │ Not Installed │ Google Container Registry's Docker credential helper │ docker-credential-gcr │ 2.2 MiB │ │ Not Installed │ gcloud Alpha Commands │ alpha │ < 1 MiB │ │ Not Installed │ gcloud app Java Extensions │ app-engine-java │ 118.4 MiB │ │ Not Installed │ gcloud app PHP Extensions │ app-engine-php │ 21.9 MiB │ │ Not Installed │ kubectl │ kubectl │ 12.2 MiB │ │ Installed │ BigQuery Command Line Tool │ bq │ < 1 MiB │ │ Installed │ Cloud Storage Command Line Tool │ gsutil │ 3.3 MiB │ │ Installed │ gcloud Beta Commands │ beta │ < 1 MiB │ │ Installed │ gcloud app Python Extensions │ app-engine-python │ 6.2 MiB │ │ Installed │ gcloud app Python Extensions (Extra Libraries) │ app-engine-python-extras │ 27.8 MiB │ └──────────────────┴──────────────────────────────────────────────────────┴──────────────────────────┴───────────┘
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。