-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgcp.tf
More file actions
33 lines (29 loc) · 1.06 KB
/
gcp.tf
File metadata and controls
33 lines (29 loc) · 1.06 KB
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
data "google_client_config" "this" {}
data "google_project" "this" {
project_id = data.google_client_config.this.project
}
locals {
region = data.google_client_config.this.region
}
resource "google_project_service" "secret_manager" {
service = "secretmanager.googleapis.com"
disable_dependent_services = false
disable_on_destroy = false
}
resource "google_project_service" "sqladmin" {
service = "sqladmin.googleapis.com"
disable_dependent_services = false
disable_on_destroy = false
}
// Cloud Run is needed to create a Cloud Function (db-admin)
resource "google_project_service" "run" {
service = "run.googleapis.com"
disable_dependent_services = false
disable_on_destroy = false
}
// Artifact Registry is needed to create a Cloud Function (db-admin) even though we're not using it
resource "google_project_service" "artifact_registry" {
service = "artifactregistry.googleapis.com"
disable_dependent_services = false
disable_on_destroy = false
}