Skip to content

Commit 4407d53

Browse files
docs: update terraform exception expire_timestamp and all databases, sync specific databases in one instance (#828)
* update terraform exception expiration_time and all databases * sync specific databases in an instance
1 parent 3db8c91 commit 4407d53

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

mintlify/tutorials/manage-data-masking-with-terraform.mdx

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -388,10 +388,17 @@ resource "bytebase_policy" "masking_exception_policy" {
388388
```
389389

390390
<Note>
391+
If there is no `expire_timestamp` specified, the exemption will never expire.
392+
391393
`2027-07-30T16:11:49Z` is an ISO 8601 UTC timestamp.
392394
Our system uses PostgreSQL to store metadata, where this value is stored as a `timestamptz`.
393395
</Note>
394396

397+
<Note>
398+
If you want to apply the exemption to all databases, you can skip the `database`, `table`, and `column` fields.
399+
</Note>
400+
401+
395402
## Step 7: Apply Final Configuration and Test
396403

397404
Apply the masking exceptions and test everything:

mintlify/tutorials/manage-databases-with-terraform.mdx

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,13 @@ resource "bytebase_instance" "prod" {
115115
}
116116
```
117117

118+
<Note>
119+
`sync_databases` is a list of database names to sync. By default, all databases are synced.
120+
121+
If you don't want to sync all databases, you can set something like `sync_databases = ["db1", "db2"]`.
122+
</Note>
123+
124+
118125
**Understanding the Configuration**
119126

120127
- **depends_on**: Ensures environments from Part 1 exist first

0 commit comments

Comments
 (0)