GCP

{GCP BigQuery}大文字小文字の区別

GCP

https://cloud.google.com/bigquery/docs/datasets?hl=ja データセット名では、デフォルトで大文字と小文字が区別されます。テーブル名では、デフォルトで大文字と小文字を区別します。 カラム名は大文字と小文字を区別してDBに定義が格納されるが、大文字小…

{GCP BigQuery}テーブル スナップショットの作成

GCP

https://cloud.google.com/bigquery/docs/table-snapshots-create?hl=ja -- 1. 前作業 gcloud initgcloud auth list gcloud --version gcloud projects create project01-9999999 \--name="project01" gcloud config listgcloud config set project project0…

{GCP BigQuery}クラスタ化テーブルの作成と使用

GCP

https://blog.g-gen.co.jp/entry/bigquery-paritioning-and-clusteringhttps://cloud.google.com/bigquery/docs/creating-clustered-tables?hl=ja BigQuery のクラスタ化テーブルは、クラスタ化列を使用したユーザー定義の列並べ替え順序があるテーブルです…

{GCP BigQuery}パーティション分割テーブルの作成

GCP

https://blog.g-gen.co.jp/entry/bigquery-paritioning-and-clusteringhttps://cloud.google.com/bigquery/docs/creating-partitioned-tables?hl=ja 整数範囲パーティショニング時間単位列パーティショニング取り込み時間パーティショニング -- 1. 前作業 gc…

{GCP BigQuery}Multi-statement transactions

GCP

https://cloud.google.com/bigquery/docs/reference/standard-sql/transactions?hl=jahttps://dev.classmethod.jp/articles/bigquery-mutistatement-transaction-ga/ トランザクションは、ACID 特性を保証し、スナップショット分離をサポートします。トラン…

{GCP Batch}Job を作成して実行する

GCP

https://cloud.google.com/blog/ja/products/compute/new-batch-service-processes-batch-jobs-on-google-cloud https://cloud.google.com/batch/docs/locations?hl=ja ※東京リージョンはbatchを使用できない -- 1. 前作業 gcloud initgcloud auth list gclo…

{GCP Artifact Registry}Docker コンテナ イメージを Artifact Registry に保存する

GCP

https://cloud.google.com/artifact-registry/docs/docker/store-docker-container-images?hl=ja Google Cloud には、コンテナ イメージの保存と管理を行うための 2 つのサービスがあります。 Artifact Registry(推奨)Container Registry 現在、Container …

{GCP Cloud Scheduler}cron ジョブをスケジュールして実行する

GCP

https://cloud.google.com/scheduler/docs/schedule-run-cron-job?hl=ja https://qiita.com/chidakiyo/items/2bbedfdb29a70acd4e45 -- 1. 前作業 gcloud initgcloud auth list gcloud --version gcloud projects create project01-9999999 \--name="project0…

{GCP API Gateway}クイックスタート: gcloud コマンドライン ツールを使用して API Gateway に API をデプロイする

GCP

https://cloud.google.com/api-gateway/docs/secure-traffic-gcloud?hl=ja https://dev.classmethod.jp/articles/google-cloud-api-gateway-handson/ -- 1. 前作業 gcloud initgcloud auth list gcloud --version gcloud projects create project01-9999999 …

{GCP Cloud Storage}オブジェクトのライフサイクル管理

GCP

https://cloud.google.com/storage/docs/lifecycle?hl=ja https://cloud.google.com/storage/docs/managing-lifecycles?hl=ja https://dev.classmethod.jp/articles/gcs_lifecycle/ ライフサイクル ルールには、次のアクションのいずれか 1 つのみを指定しま…

{GCP Dataflow}Pub/Sub から BigQuery へのストリーミング

GCP

https://cloud.google.com/dataflow/docs/tutorials/dataflow-stream-to-bigquery?hl=ja https://marketingengineercareer.com/google-cloud-dataflow https://cloud.google.com/bigquery/docs/creating-partitioned-tables?hl=ja#bq https://cloud.google.c…

{GCP Cloud Storage}ターボ レプリケーション

GCP

https://cloud.google.com/storage/docs/turbo-replication?hl=jahttps://cloud.google.com/storage/docs/locations?hl=ja ターボ レプリケーションは Cloud Storage の機能で、挿入、書き換え、コピー、作成などのオペレーションに関連して新しく作成された…

{GCP Cloud Storage}オブジェクトのバージョニングを使用する

GCP

https://cloud.google.com/storage/docs/using-object-versioning?hl=ja https://cloud.google.com/storage/docs/using-versioned-objects?hl=ja https://cloud.google.com/storage/docs/object-versioning?hl=ja -- 1. 前作業 gcloud initgcloud auth list …

{GCP Cloud Storage}Cloud Storage のツールを使用した V4 署名プロセス

GCP

https://cloud.google.com/storage/docs/access-control/signing-urls-with-helpers?hl=jahttps://cloud.google.com/storage/docs/access-control/signed-urls?hl=jahttps://dev.to/suavebajaj/using-gsutil-signed-url-3pnj -- 1. 前作業 gcloud initgcloud…

{GCP Cloud Storage}HTTP を使用した静的ウェブサイトのホスティング

GCP

https://cloud.google.com/storage/docs/hosting-static-website-http?hl=jahttps://zenn.dev/kiyomaryu/articles/1b7abe032f2f0ehttps://cloud.google.com/storage/docs/access-public-data?hl=jahttps://cloud.google.com/storage/docs/access-control/mak…

{GCP Cloud Tasks}Cloud Tasks キューにタスクを追加する

GCP

https://cloud.google.com/tasks/docs/add-task-queue?hl=ja -- 1. 前作業 gcloud initgcloud auth list gcloud --version gcloud projects create project01-9999999 \--name="project01" gcloud config listgcloud config set project project01-9999999gc…

{GCP Cloud Pub/Sub}gcloud CLI を使用して Pub/Sub でメッセージをパブリッシュし、受信する

GCP

https://cloud.google.com/pubsub/docs/publish-receive-messages-gcloud?hl=ja -- 1. 前作業 gcloud initgcloud auth list gcloud --version gcloud projects create project01-9999999 \--name="project01" gcloud config listgcloud config set project p…

{GCP Cloud DNS}DNS ルーティング ポリシーとヘルスチェックを管理する

GCP

https://cloud.google.com/dns/docs/zones/manage-routing-policies#gcloudhttps://www.topgate.co.jp/gcp26-domain-operation-by-cloud-dnshttps://kinsta.com/jp/knowledgebase/flush-dns/ Cloud DNS でサポートされるルーティング ポリシーは次のとおりで…

{GCP Secret Manager}Secret Manager でシークレットを作成する

GCP

https://cloud.google.com/secret-manager/docs/create-secret?hl=ja https://zenn.dev/nananaoto/articles/43e3414fdb1da37b377e -- 1. 前作業 gcloud initgcloud auth list gcloud --version gcloud projects create project01-9999999 \--name="project01…

{GCP Cloud KMS}Cloud KMS 鍵を使用してリソースを保護する

GCP

https://cloud.google.com/compute/docs/disks/customer-managed-encryption?hl=ja https://qiita.com/atsumjp/items/b872744d69686a1fc783 https://blog.g-gen.co.jp/entry/cloud-kms-explained 顧客管理の暗号鍵(CMEK)顧客指定の暗号鍵(CSEK) ここでは…

{GCP Cloud Load Balancing}マルチリージョンの外部 HTTPS ロードバランサへのリクエストの転送

GCP

https://cloud.google.com/load-balancing/docs/https/setting-up-https?hl=ja#gcloud-and-using-curl /video で始まる URL パスを含むトラフィック -> us-central1-bその他のトラフィック -> europe-west1-b httpのみ実施 -- 1. 前作業 gcloud initgcloud a…

{GCP Cloud Spanner}gcloud CLI を使用してデータベースを作成し、クエリを実行する

GCP

https://cloud.google.com/spanner/docs/getting-started/gcloud?hl=ja Cloud Spanner は、リクエスト負荷やデータサイズに基づいてデータを自動的にシャーディングしてパフォーマンスを最適化します。 1 ノードあたりの料金/時間 $1.17プロビジョニングした…

{GCP Cloud Bigtable}cbt CLI でインスタンスを作成してデータを書き込む

GCP

https://cloud.google.com/bigtable/docs/create-instance-write-data-cbt-cli?hl=ja https://cloud.google.com/bigtable/docs/creating-instance?hl=ja#cbthttps://cloud.google.com/bigtable/docs/cbt-reference?hl=ja ノードあたり $0.85/時間(最小 1 ノ…

{GCP BigQuery}bqツールを使用してデータを読み込みクエリを実行する

GCP

https://www.topgate.co.jp/gcp12-how-to-analyze-big-data-with-bigquery https://cloud.google.com/bigquery/docs/quickstarts/load-data-bq?hl=ja bq コマンドライン ツールは、Python をベースにした BigQuery 用のコマンドライン ツールですbqコマンド…

{GCP Filestore}gcloud CLI を使用して Filestore インスタンスを作成する

GCP

https://cloud.google.com/filestore/docs/create-instance-gcloud?hl=ja -- 1. 前作業 gcloud initgcloud auth list gcloud --version gcloud projects create project01-9999999 \--name="project01" gcloud projects list gcloud config listgcloud confi…

{GCP VPC}Packet Mirroring を使用する

GCP

https://cloud.google.com/vpc/docs/using-packet-mirroring?hl=ja https://qiita.com/hssh2_bin/items/722176ca3f813d339a41 Packet Mirroring を有効にするには、パケット ミラーリング コレクタとして機能する内部 TCP / UDP ロードバランサが必要です バ…

{GCP Compute Engine}vm起動停止自動化

GCP

https://cloud.google.com/compute/docs/instances/schedule-instance-start-stop?hl=jahttps://cloud.google.com/iam/docs/manage-access-service-accounts?hl=jahttps://cloud.google.com/iam/docs/creating-custom-roles?hl=ja#iam-custom-roles-create-g…

{GCP Memorystore for Redis}gcloud CLI を使用して Memorystore for Redis インスタンスを作成する

GCP

https://cloud.google.com/memorystore/docs/redis/create-instance-gcloud?hl=ja Basic 1GB 209円/1日 -- 1. 前作業 gcloud initgcloud auth list gcloud --version gcloud projects create project01-9999999 \--name="project01" gcloud projects list gc…

{GCP Cloud Firestore}Datastore モードの Firestore でデータを保存し、クエリを実行する

GCP

https://cloud.google.com/datastore/docs/store-query-data?hl=ja https://qiita.com/kento_gm/items/0ae03a6fee989a53ed2f https://cloud.google.com/datastore/docs/samples/datastore-basic-entity?hl=ja https://cloud.google.com/datastore/docs/datas…

{GCP Cloud SQL}ローカル コンピュータから Cloud SQL for MySQL に接続する

GCP

https://cloud.google.com/sql/docs/mysql/connect-instance-local-computer?hl=ja#gcloud 前提:Goインストール済Gitインストール済mysqlクライアントインストール済 -- 1. 前作業 gcloud initgcloud auth list gcloud --version gcloud projects create pro…