-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add taxonomy and policy_tag resources to data_catalog product (#4076)
* Add taxonomy and policy tag resources to data analyitics product * add explaination of supported regions and fix policy tag reference * updated spelling, iam generation, and output only property: * removed explictly stating what is supported
- Loading branch information
1 parent
0e90634
commit 78d65d5
Showing
7 changed files
with
204 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
templates/terraform/examples/data_catalog_taxonomies_policy_tag_basic.tf.erb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
resource "google_data_catalog_policy_tag" "<%= ctx[:primary_resource_id] %>" { | ||
provider = google-beta | ||
taxonomy = google_data_catalog_taxonomy.my_taxonomy.id | ||
display_name = "Low security" | ||
description = "A policy tag normally associated with low security items" | ||
} | ||
|
||
resource "google_data_catalog_taxonomy" "my_taxonomy" { | ||
provider = google-beta | ||
region = "us" | ||
display_name = "<%= ctx[:vars]['taxonomy_display_name'] %>" | ||
description = "A collection of policy tags" | ||
activated_policy_types = ["FINE_GRAINED_ACCESS_CONTROL"] | ||
} | ||
|
30 changes: 30 additions & 0 deletions
30
templates/terraform/examples/data_catalog_taxonomies_policy_tag_child_policies.tf.erb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
resource "google_data_catalog_policy_tag" "parent_policy" { | ||
provider = google-beta | ||
taxonomy = google_data_catalog_taxonomy.my_taxonomy.id | ||
display_name = "High" | ||
description = "A policy tag category used for high security access" | ||
} | ||
|
||
resource "google_data_catalog_policy_tag" "<%= ctx[:primary_resource_id] %>" { | ||
provider = google-beta | ||
taxonomy = google_data_catalog_taxonomy.my_taxonomy.id | ||
display_name = "ssn" | ||
description = "A hash of the users ssn" | ||
parent_policy_tag = google_data_catalog_policy_tag.parent_policy.id | ||
} | ||
|
||
resource "google_data_catalog_policy_tag" "child_policy2" { | ||
provider = google-beta | ||
taxonomy = google_data_catalog_taxonomy.my_taxonomy.id | ||
display_name = "dob" | ||
description = "The users date of birth" | ||
parent_policy_tag = google_data_catalog_policy_tag.parent_policy.id | ||
} | ||
|
||
resource "google_data_catalog_taxonomy" "my_taxonomy" { | ||
provider = google-beta | ||
region = "us" | ||
display_name = "<%= ctx[:vars]['taxonomy_display_name'] %>" | ||
description = "A collection of policy tags" | ||
activated_policy_types = ["FINE_GRAINED_ACCESS_CONTROL"] | ||
} |
7 changes: 7 additions & 0 deletions
7
templates/terraform/examples/data_catalog_taxonomy_basic.tf.erb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
resource "google_data_catalog_taxonomy" "<%= ctx[:primary_resource_id] %>" { | ||
provider = google-beta | ||
region = "us" | ||
display_name = "<%= ctx[:vars]['display_name'] %>" | ||
description = "A collection of policy tags" | ||
activated_policy_types = ["FINE_GRAINED_ACCESS_CONTROL"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters