forked from ThreeDotsLabs/wild-workouts-go-ddd-example
-
Notifications
You must be signed in to change notification settings - Fork 0
/
project.tf
60 lines (47 loc) · 1.45 KB
/
project.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
provider "google" {
project = var.project
region = var.region
}
data "google_billing_account" "account" {
display_name = var.billing_account
}
resource "google_project" "project" {
name = "Wild Workouts"
project_id = var.project
billing_account = data.google_billing_account.account.id
}
resource "google_project_iam_member" "owner" {
role = "roles/owner"
member = "user:${var.user}"
depends_on = [google_project.project]
}
resource "google_project_service" "compute" {
service = "compute.googleapis.com"
depends_on = [google_project.project]
}
resource "google_project_service" "container_registry" {
service = "containerregistry.googleapis.com"
depends_on = [google_project.project]
disable_dependent_services = true
}
resource "google_project_service" "cloud_run" {
service = "run.googleapis.com"
depends_on = [google_project.project]
}
resource "google_project_service" "cloud_build" {
service = "cloudbuild.googleapis.com"
depends_on = [google_project.project]
}
resource "google_project_service" "firebase" {
service = "firebase.googleapis.com"
depends_on = [google_project.project]
disable_dependent_services = true
}
resource "google_project_service" "firestore" {
service = "firestore.googleapis.com"
depends_on = [google_project.project]
}
resource "google_project_service" "source_repo" {
service = "sourcerepo.googleapis.com"
depends_on = [google_project.project]
}