Skip to content

Commit 31a130d

Browse files
docs: update (#131)
1 parent 18bbceb commit 31a130d

21 files changed

+122
-176
lines changed

tutorials/1-0-list-env-instance.tf renamed to tutorials/1-0-list-env.tf

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,4 @@ data "bytebase_setting" "environments" {
44
}
55
output "all_environments" {
66
value = data.bytebase_setting.environments
7-
}
8-
9-
# List all instances
10-
data "bytebase_instance_list" "all" {}
11-
output "all_instances" {
12-
value = data.bytebase_instance_list.all
137
}

tutorials/1-1-env-alt.tf.alt

Lines changed: 0 additions & 17 deletions
This file was deleted.
File renamed without changes.

tutorials/3-2-env-setting.tf renamed to tutorials/1-2-env-policy-rollout.tf

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -28,26 +28,4 @@ resource "bytebase_policy" "rollout_policy_prod" {
2828
"roles/CREATOR"
2929
]
3030
}
31-
}
32-
33-
resource "bytebase_policy" "disable_copy_data_policy_prod" {
34-
depends_on = [bytebase_setting.environments]
35-
parent = bytebase_setting.environments.environment_setting[0].environment[1].name
36-
type = "DISABLE_COPY_DATA"
37-
38-
disable_copy_data_policy {
39-
enable = true
40-
}
41-
}
42-
43-
resource "bytebase_policy" "data_source_query_policy_prod" {
44-
depends_on = [bytebase_setting.environments]
45-
parent = bytebase_setting.environments.environment_setting[0].environment[1].name
46-
type = "DATA_SOURCE_QUERY"
47-
48-
data_source_query_policy {
49-
restriction = "RESTRICTION_UNSPECIFIED" # or DISALLOW or FALLBACK
50-
disallow_ddl = true
51-
disallow_dml = true
52-
}
5331
}

tutorials/1-2-instances-alt.tf.alt

Lines changed: 0 additions & 37 deletions
This file was deleted.

tutorials/1-3-env-policy-data.tf

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
resource "bytebase_policy" "disable_copy_data_policy_prod" {
2+
depends_on = [bytebase_setting.environments]
3+
parent = bytebase_setting.environments.environment_setting[0].environment[1].name
4+
type = "DISABLE_COPY_DATA"
5+
6+
disable_copy_data_policy {
7+
enable = true
8+
}
9+
}
10+
11+
resource "bytebase_policy" "data_source_query_policy_prod" {
12+
depends_on = [bytebase_setting.environments]
13+
parent = bytebase_setting.environments.environment_setting[0].environment[1].name
14+
type = "DATA_SOURCE_QUERY"
15+
16+
data_source_query_policy {
17+
restriction = "RESTRICTION_UNSPECIFIED" # or DISALLOW or FALLBACK
18+
disallow_ddl = true
19+
disallow_dml = true
20+
}
21+
}
File renamed without changes.
File renamed without changes.

tutorials/3-1-workspace-profile.tf renamed to tutorials/4-1-workspace-profile.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@ resource "bytebase_setting" "workspace_profile" {
55
disallow_signup = true
66
domains = ["example.com"]
77
enforce_identity_domain = false
8-
external_url = "https://valid-just-tadpole.ngrok-free.app"
8+
external_url = "https://example.com"
99
}
1010
}
File renamed without changes.

0 commit comments

Comments
 (0)