http://localhost:8080
.
Workspace Admin
role.
Test
and Prod
. We’ll manage these environments using Terraform next.
learn-terraform-bytebase
and navigate to it.
0-provider.tf
, visit Terraform Bytebase Provider, click USE PROVIDER and copy the configuration.
Service Account
tf@service.bytebase.com
Workspace Admin
0-provider.tf
with your service account key.Terraform data source | bytebase_environment |
Sample file | 1-0-list-env.tf |
1-0-list-env.tf
:
test
and prod
environments.
Terraform resource | bytebase_setting |
Sample file | 1-1-env-setting.tf |
1-1-env-setting.tf
:
Terraform resource | bytebase_policy |
Sample file | 1-2-env-policy-rollout.tf |
1-2-env-policy-rollout.tf
:
roles
is the list of roles that are allowed to click the button to deploy the changes manually. Even automatic rollout is enabled, manual approval is still needed while there is any automatic check failure.Terraform resource | bytebase_policy |
Sample file | 1-3-env-policy-data.tf |
1-3-env-policy-data.tf
:
Prod
environment. Which means in Test
environment, by default, users may execute DDL and DML statements or copy data directly in SQL Editor.
restriction
controls access to the data source:
RESTRICTION_UNSPECIFIED
: Admin data source is allowed.DISALLOW
: Admin data source is completely disallowed.FALLBACK
: Prefer the read-only data source; use admin only if read-only is not configured.Prod
shows a shield icon (protected).