Skip to content

Commit 50b5adc

Browse files
docs: update 8-5-masking-exception.tf (#148)
1 parent ca3f099 commit 50b5adc

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

tutorials/8-5-masking-exception.tf

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,17 @@ resource "bytebase_policy" "masking_exception_policy" {
1919
actions = ["QUERY", "EXPORT"]
2020
expire_timestamp = "2027-07-30T16:11:49Z"
2121
}
22+
exceptions {
23+
reason = "Export data for analysis"
24+
members = ["user:[email protected]"]
25+
actions = ["EXPORT"]
26+
expire_timestamp = "2027-07-30T16:11:49Z"
27+
}
28+
exceptions {
29+
reason = "Grant query access"
30+
members = ["user:[email protected]"]
31+
actions = ["QUERY"]
32+
raw_expression = "resource.instance_id == \"prod-sample-instance\" && resource.database_name == \"hr_prod\" && resource.table_name == \"employee\" && resource.column_name in [\"first_name\", \"last_name\", \"gender\"]"
33+
}
2234
}
2335
}

0 commit comments

Comments
 (0)