diff --git a/tutorials/1-instances.tf b/tutorials/1-instances.tf deleted file mode 100644 index 7ce2592..0000000 --- a/tutorials/1-instances.tf +++ /dev/null @@ -1,37 +0,0 @@ -# Built-in Test Instance -resource "bytebase_instance" "test" { - depends_on = [bytebase_setting.environments] - resource_id = "test-sample-instance" - environment = "environments/test" - title = "Test Sample Instance" - engine = "POSTGRES" - activation = true - - data_sources { - id = "admin data source test-sample-instance" - type = "ADMIN" - host = "/tmp" - port = "8083" - username = "bbsample" - password = "" - } -} - -# Built-in Prod Instance -resource "bytebase_instance" "prod" { - depends_on = [bytebase_setting.environments] - resource_id = "prod-sample-instance" - environment = "environments/prod" - title = "Prod Sample Instance" - engine = "POSTGRES" - activation = true - - data_sources { - id = "admin data source prod-sample-instance" - type = "ADMIN" - host = "/tmp" - port = "8084" - username = "bbsample" - password = "" - } -} \ No newline at end of file diff --git a/tutorials/3-2-env-setting.tf b/tutorials/3-2-env-setting.tf index 1ca4398..00d02fa 100644 --- a/tutorials/3-2-env-setting.tf +++ b/tutorials/3-2-env-setting.tf @@ -46,8 +46,8 @@ resource "bytebase_policy" "data_source_query_policy_prod" { type = "DATA_SOURCE_QUERY" data_source_query_policy { - restriction = "FALLBACK" # or DISALLOW or RESTRICTION_UNSPECIFIED + restriction = "RESTRICTION_UNSPECIFIED" # or DISALLOW or FALLBACK disallow_ddl = true disallow_dml = true } -} \ No newline at end of file +} diff --git a/tutorials/5-user-iam.tf b/tutorials/5-user-iam.tf index 0c1aa90..c21127e 100644 --- a/tutorials/5-user-iam.tf +++ b/tutorials/5-user-iam.tf @@ -175,10 +175,10 @@ resource "bytebase_iam_policy" "project_iam" { condition { database = "instances/prod-sample-instance/databases/hr_prod" schema = "public" - tables = ["employee","department"] + tables = ["employee","salary"] expire_timestamp = "2027-07-10T16:17:49Z" } } } -} \ No newline at end of file +}