-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgcp.tf
More file actions
29 lines (24 loc) · 881 Bytes
/
gcp.tf
File metadata and controls
29 lines (24 loc) · 881 Bytes
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
data "google_client_config" "this" {}
data "google_compute_zones" "available" {}
data "google_project" "this" {}
locals {
project_id = data.google_project.this.project_id
region = data.google_client_config.this.region
available_zones = data.google_compute_zones.available.names
}
resource "google_project_service" "iam" {
service = "iam.googleapis.com"
disable_dependent_services = false
disable_on_destroy = false
}
resource "google_project_service" "container" {
service = "container.googleapis.com"
disable_dependent_services = false
disable_on_destroy = false
}
resource "google_project_service" "telemetry" {
service = "telemetry.googleapis.com"
disable_dependent_services = false
disable_on_destroy = false
count = var.enable_managed_otel ? 1 : 0
}