-
Notifications
You must be signed in to change notification settings - Fork 0
/
clouddeploy.tf
45 lines (36 loc) · 1023 Bytes
/
clouddeploy.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
resource "google_clouddeploy_delivery_pipeline" "cloud_deploy_pipeline" {
location = var.region
name = "hello-app"
project = module.project.project_id
description = "main application pipeline"
serial_pipeline {
stages {
profiles = []
target_id = "test"
}
stages {
profiles = []
target_id = "prod"
}
}
}
resource "google_clouddeploy_target" "cloud_deploy_test_target" {
location = var.region
name = "test"
description = "test cluster"
gke {
cluster = "projects/${module.project.project_id}/locations/${var.region}/clusters/test"
}
project = module.project.project_id
require_approval = false
}
resource "google_clouddeploy_target" "cloud_deploy_prod_target" {
location = var.region
name = "prod"
description = "test cluster"
gke {
cluster = "projects/${module.project.project_id}/locations/${var.region}/clusters/prod"
}
project = module.project.project_id
require_approval = true
}