Skip to content

Commit

Permalink
Merge pull request #13 from a-company-jp/add-firebase
Browse files Browse the repository at this point in the history
Add Firebase
  • Loading branch information
Shion1305 authored Apr 13, 2024
2 parents 469b640 + ac86376 commit 8554e1c
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions envs/dev/firebase.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
resource "google_firebase_project" "default" {
provider = google-beta
project = var.project_id
}

resource "google_project_service" "firebase_database" {
provider = google-beta
project = google_firebase_project.default.project
service = "firebasedatabase.googleapis.com"
}

resource "google_firebase_database_instance" "default" {
provider = google-beta
project = google_firebase_project.default.project
region = "asia-southeast1"
instance_id = "lgtmgen-project-default-rtdb"
type = "DEFAULT_DATABASE"
depends_on = [google_project_service.firebase_database]
}

0 comments on commit 8554e1c

Please sign in to comment.