@@ -33,7 +33,7 @@ In this tutorial, you'll use Terraform to manage Bytebase environments programma
3333- Define environments (Test, Prod) with different protection levels
3434- Configure automatic vs manual deployment policies
3535- Set up data access restrictions for production
36- - Manage everything as Infrastructure as Code (IaC)
36+ - Manage everything via Infrastructure as Code (IaC)
3737
3838## Prerequisites
3939
@@ -61,7 +61,7 @@ Follow the [official Terraform installation guide](https://developer.hashicorp.c
6161
6262 ![ register-admin] ( /content/docs/tutorials/manage-environments-with-terraform/bb-register-admin.webp )
6363
64- 1 . Follow the guide to configure, you'll need the ** built-in sample** data for this tutorial.
64+ 1 . Complete the setup to configure Bytebase , you'll need to select ** use built-in sample** for this tutorial.
6565
6666 ![ use-built-in-sample] ( /content/docs/tutorials/manage-environments-with-terraform/bb-use-built-in-sample.webp )
6767
@@ -71,13 +71,13 @@ Follow the [official Terraform installation guide](https://developer.hashicorp.c
7171
7272### Explore Current Environments
7373
74- Navigate to ** Environments** in Bytebase. You'll see two default environments ` Test ` and ` Prod ` . We’ll manage these environments using Terraform next.
74+ Navigate to ** Environments** in Bytebase. You'll see two default environments: ` Test ` and ` Prod ` . We’ll manage these environments using Terraform next.
7575
7676![ env-default] ( /content/docs/tutorials/manage-environments-with-terraform/bb-env-default.webp )
7777
7878## Step 2 - Configure Terraform Provider
7979
80- ### Set up Provider
80+ ### Set up the Provider
8181
82821 . Create a new folder ` learn-terraform-bytebase ` and navigate to it.
8383
@@ -102,7 +102,7 @@ Navigate to **Environments** in Bytebase. You'll see two default environments `T
102102 }
103103 ```
104104
105- ### Create Service Account
105+ ### Create a Service Account
106106
1071071 . In Bytebase, go to ** IAM & Admin > Users & Groups** .
1081081 . Click ** + Add User** and create a service account:
@@ -124,7 +124,7 @@ You should see: "Terraform has been successfully initialized!"
124124
125125## Step 3 - Inspect Current Environments
126126
127- Before making changes, let's see what environments exist.
127+ Before making any changes, let's see what environments currently exist.
128128
129129| | |
130130| --------------------- | ---------------------------------------------------------------------------------------------------------------------- |
@@ -154,7 +154,7 @@ terraform apply
154154
155155You'll see the existing ` test ` and ` prod ` environments.
156156
157- ## Step 4 - Define Environment Configuration
157+ ## Step 4 - Define the Environment Configuration
158158
159159| | |
160160| --------------------- | ---------------------------------------------------------------------------------------------------------------------- |
@@ -164,7 +164,7 @@ You'll see the existing `test` and `prod` environments.
164164Create ` 1-1-env-setting.tf ` :
165165
166166``` hcl 1-1-env-setting.tf
167- # Define environments as Infrastructure as Code
167+ # Define environments via Infrastructure as Code
168168resource "bytebase_setting" "environments" {
169169 name = "settings/ENVIRONMENT"
170170
@@ -180,7 +180,7 @@ resource "bytebase_setting" "environments" {
180180 environment {
181181 id = "prod"
182182 title = "Prod"
183- ## Bytebase will attach a shield icon 🛡️ besides the environment name.
183+ ## Bytebase will attach a shield icon 🛡️ beside the environment name.
184184 protected = true
185185 }
186186 }
@@ -189,7 +189,7 @@ resource "bytebase_setting" "environments" {
189189
190190## Step 5 - Configure Environment Policies
191191
192- Let's add rollout and data protection policies, you may find more details in [ Environment Settings ] ( /administration/environment-policy/overview ) .
192+ Let's add rollout and data protection policies, for more details, see: [ Environment Policy ] ( /administration/environment-policy/overview ) and [ Rollout Policy ] ( /administration/environment-policy/rollout-policy ) .
193193
194194### Rollout Policy
195195
@@ -236,7 +236,7 @@ resource "bytebase_policy" "rollout_policy_prod" {
236236}
237237```
238238
239- - ` 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.
239+ - ` roles ` is the list of roles that are allowed to click the button to deploy changes manually. Even if automatic rollout is enabled, manual approval is still needed while there is any automatic check failure.
240240
241241### Data Protection Policy
242242
0 commit comments