Skip to content

na2mene/tech-lunch-gcp-sample

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

tech-lunch-gcp-sample

tech lunch LTで使用したサンプルコードです

これは何か

あらゆる定常作業の管理をGCPで行うサンプルです

サンプルの技術スタック

  • インフラ
    • Cloud Functions
    • Cloud Run
    • Cloud Pub/Sub
    • Cloud Storage
  • 言語
    • Node.js
    • Typescript

サンプルのディレクトリ構造

.
└─ app
  ├── functions
  │   └── something-function-name
  ├── gateway
  │   └── src
  └── gcloud-configs

functions には、定常作業のロジックを管理する
定常作業ごとにディレクトリが増える

gateway には、定常作業のリクエスト受け付けるアプリケーションを管理する
リクエストのエンドポイントなどを定義する

gcloud-configs には、JSON形式のサービスアカウントキーを管理します(.gitignore)

TODO

  • Cloud Buildで自動deployする
  • Secret Managerを使って機密データを保持する

参考

Cloud Functions
Cloud Run
Cloud Pub/Sub
Cloud Storage
Secret Manager
Cloud Build
Service Account