sinmetal

Results 45 issues of sinmetal

# WHAT Google SpreadsheetなどのG Suite系のAPIやFirebase APIをApplicationから実行しようとした時に、Application Default Credentialsを利用していると権限があるにも関わらず403でエラーになる。 ## Refs * [Spreadsheets APIをGoからADCで利用する時のサンプルコード](https://github.com/sinmetal/other_than_gcp/blob/dcca7fbe509476b84ccd27aa7e09a617344cb42d/backend/sheets.go#L48) # WHY `gcloud auth application-default login` の場合、GCPのScopeは最強のもので取得しているけど、その中にG SuiteやFirebaseは含まれていないからっぽい? # Solution [gcloud auth application-default login --scopes](https://cloud.google.com/sdk/gcloud/reference/auth/application-default/login#--scopes) を利用して必要な任意のScopeを設定してやる。 Spreadsheetだと...

## 問題 gcloud commandを実行すると以下のエラーが発生する。 ``` $ gcloud ERROR:root:code for hash md5 was not found. Traceback (most recent call last): File "/usr/local/Cellar/python/2.7.14/Frameworks/Python.framework/Versions/2.7/lib/python2.7/hashlib.py", line 147, in globals()[__func_name] = __get_hash(__func_name) File "/usr/local/Cellar/python/2.7.14/Frameworks/Python.framework/Versions/2.7/lib/python2.7/hashlib.py", line...

# Google Cloud Spanner Backup and Restore ## Document Link * [Backup and Restore](https://cloud.google.com/spanner/docs/backup) ## 好きなところ * [API](https://cloud.google.com/spanner/docs/reference/rest?hl=ja#rest-resource-v1projectsinstancesbackups) 実行するだけでBackupが作れるところ * [Backup StorageのCost](https://cloud.google.com/spanner/docs/backup#billing) しかかからないところ ## ユースケース (optional) ## 更に欲しい機能 (optional) *...

oshi

# WHAT GCPUG Slack #bigquery でSQL学習コンテンツについて話題になっていたのでメモ ## 書籍 * https://www.shoeisha.co.jp/book/detail/9784798157825 * https://www.shoeisha.co.jp/book/detail/9784798114132 * https://www.shoeisha.co.jp/book/detail/9784798128023 * https://www.sbcr.jp/product/4797376272/ * https://www.amazon.co.jp/dp/B06XRWPPC9/ ## Site * http://mickindex.sakura.ne.jp/database/idx_database.html

bigquery

# WHAT GCPのTest用の機能たちをまとめる # WHY 地味に色々あって、思い出すのが大変なので

2020年1月1日 からExternal IP Addrの料金改定を予定しているよというのがメールで送られてきている。 ただ、実際に料金が支払うのは4月からになり、1月~3月の間は発生した料金はすべて割引が適用される。 現在のProjectでどのぐらいの料金がかかるのかが出てくるので、要らないやつがあったら消したりしておいてね期間。 We will fully discount any external IP usage for the first 3 months to help you quantify the impact of these pricing changes. Please...

compute-engine

# WHAT 1st genで作成アプリケーションを2nd genにマイグレーションする場合、どうするか?についての話 * 使えなくなる機能の話 * App Engine APIのMigration先の話 # WHY * 1st genから2nd genに行くにはどのぐらいのジャンプが必要なのか? * 現実的にどのタイミングで行くのがよいのか? を追いかけていくためのノート

* https://cloud.google.com/blog/products/management-tools/stackdriver-tips-and-tricks-understanding-metrics-and-building-charts * https://cloud.google.com/logging/docs/logs-based-metrics/?hl=en#too-many-time-series

# WHAT GCP上で自動的に作られるService Accountは、ものによって所属するProjectが異なる。 自分のProjectに存在するものは、secret.jsonが作成できるが、外のProjectにいるものは作れない。 ## 自分のProjectにいるものの例 * App Engine Default Service Account * Compute Engine Default Service Account ## 外のProjectにいるものの例 * Cloud Build Service Account # WHY Cloud Build...

Google Cloud BuildをCIのように回す時に、Google Cloud * Emulatorたちを動かしたい!という気持ちを言ったら、 @apstndb さんが一晩でやってくれました https://gist.github.com/apstndb/f362881ac2335f10a5ebe5456e5c4cec 以下はDatastore Emulatorを動かしている例 ``` steps: # Cloud Build uses cloud # https://cloud.google.com/cloud-build/docs/overview#build_configuration_and_build_steps - name: gcr.io/cloud-builders/docker args: ['run', '-d', '--network=cloudbuild', '--name=cds-emulator', 'google/cloud-sdk:248.0.0', 'gcloud',...

cloud-build