forked from bytebase/terraform-provider-bytebase
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path3-projects.tf
More file actions
59 lines (52 loc) · 1.26 KB
/
3-projects.tf
File metadata and controls
59 lines (52 loc) · 1.26 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
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
# Project One - with all new project settings
resource "bytebase_project" "project-one" {
depends_on = [
bytebase_instance.test
]
resource_id = "project-one"
title = "Project One"
enforce_sql_review = true
require_issue_approval = true
require_plan_check_no_error = true
allow_request_role = true
allow_just_in_time_access = true
force_issue_labels = false
# Issue labels
issue_labels {
value = "schema-change"
color = "#0066CC"
group = "type"
}
issue_labels {
value = "data-change"
color = "#CC6600"
group = "type"
}
# Project labels
labels = {
environment = "test"
team = "platform"
}
databases = bytebase_instance.test.databases
webhooks {
title = "Sample webhook 1"
type = "SLACK"
url = "https://webhook.site/91fcd52a-39f1-4e7b-a43a-ddf72796d6b1"
notification_types = [
"ISSUE_CREATED",
"ISSUE_APPROVAL_REQUESTED",
"PIPELINE_COMPLETED",
]
}
}
# Project Two - minimal configuration
resource "bytebase_project" "project-two" {
depends_on = [
bytebase_instance.prod
]
resource_id = "project-two"
title = "Project Two"
databases = [
"instances/prod-sample-instance/databases/hr_prod"
]
}