Skip to content

Mood-Trend/mood-trend-terraform

Repository files navigation

mood-trend-terraform

気分グラフ Mood Trend の Firebase, Google Cloud 環境に対する IaC リポジトリです。

Management Target

  • Firebase Android App
  • Firebase iOS App
  • Google Cloud(Firebase 含む)IAM
  • Firestore
    • DB
    • Collection / Document
    • Security Rules
  • Cloud Storage for Firebase
    • Bucket
    • Security Rules
  • Firebase Authentication
    • Anonymous Authentication

File Organization

.
├── firebase_rules          
│   ├── firestore.rules     # Firestore に対するセキュリティルール定義
│   └── storage.rules       # Cloud Storage for Firebase に対するセキュリティルール定義
├── android.tf              # Firebase Android App 定義
├── authentication.tf       # Firebase Authentication 定義
├── backend.tf              # .tfstate 置き場定義
├── firestore.tf            # Firestore DB 定義
├── iam.tf                  # IAM 定義
├── ios.tf                  # Firebase iOS App 定義
├── locals.tf               # 固定値定義
├── main.tf                 # Firebase リソース定義
├── provider.tf             # Google Beta プロバイダ定義
└── storage.tf              # Cloud Storage for Firebase リソース定義

Environments

Configuration Name Platform Connect to Firebase
app-dev iOS / Android mood-trend-dev
app-prod iOS / Android mood-trend-prod

CI/CD Pipeline

flowchart TD
    PR[Pull Request] --> CI{Auto check & test}
    CI -->|OK| Review{Code review}
    CI -->|NG| Fix[Fix codes]
    Fix --> PR
    Review -->|Approve| Merge[Merge to main]
    Review -->|Change Request| Fix
    Merge --> Dev[Deploy to Dev env]
    Tag[Push tag v.*] --> Prd[Deploy to Prd env]
Loading

Other Repositories