Skip to content

Commit

Permalink
Separating keys from values in map type fields (GoogleCloudPlatform#145)
Browse files Browse the repository at this point in the history
  • Loading branch information
guptamukul-google authored Apr 17, 2023
1 parent 0c736a9 commit dcce7d5
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 20 deletions.
16 changes: 8 additions & 8 deletions modules/secure_data_warehouse/terraform.tfvars.example
Original file line number Diff line number Diff line change
Expand Up @@ -14,44 +14,44 @@ source_data_gcs_objects = ["gs://my-bucket/path_to_file1/my_file

data_fields = {
field1 = {
mode = "NULLABLE"
mode = "NULLABLE",
type = "STRING"
},
field2 = {
mode = "NULLABLE"
mode = "NULLABLE",
type = "DATE"
},
field3 = {
mode = "NULLABLE"
mode = "NULLABLE",
type = "STRING"
},
field4 = {
mode = "REQUIRED"
mode = "REQUIRED",
type = "STRING"
},
field5 = {
mode = "NULLABLE"
mode = "NULLABLE",
type = "STRING"
}
}

sensitive_tags = {
field2 = {
display_name = "FIELD2_POLICY_TAG_DISPLAY_NAME"
display_name = "FIELD2_POLICY_TAG_DISPLAY_NAME",
description = "Field2 Policy Tag description."
}
}

private_tags = {
field1 = {
display_name = "FIELD1_POLICY_TAG_DISPLAY_NAME"
display_name = "FIELD1_POLICY_TAG_DISPLAY_NAME",
description = "Field1 Policy Tag description."
}
}

confidential_tags = {
field4 = {
display_name = "FIELD4_POLICY_TAG_DISPLAY_NAME"
display_name = "FIELD4_POLICY_TAG_DISPLAY_NAME",
description = "Field4 Policy Tag description."
}
}
Expand Down
24 changes: 12 additions & 12 deletions modules/secure_data_warehouse/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ variable "confidential_tags" {
}))
default = {
name = {
display_name = "FULL_NAME"
display_name = "FULL_NAME",
description = "A full person name, which can include first names, middle names or initials, and last names."
}
}
Expand Down Expand Up @@ -183,7 +183,7 @@ variable "private_tags" {
}))
default = {
dob = {
display_name = "DOB"
display_name = "DOB",
description = "Date of Birth of the person."
}
}
Expand Down Expand Up @@ -220,39 +220,39 @@ variable "data_fields" {
}))
default = {
email = {
mode = "NULLABLE"
mode = "NULLABLE",
type = "STRING"
},
name = {
mode = "NULLABLE"
mode = "NULLABLE",
type = "STRING"
},
street = {
mode = "NULLABLE"
mode = "NULLABLE",
type = "STRING"
},
city = {
mode = "NULLABLE"
mode = "NULLABLE",
type = "STRING"
},
state = {
mode = "NULLABLE"
mode = "NULLABLE",
type = "STRING"
},
zip = {
mode = "NULLABLE"
mode = "NULLABLE",
type = "INTEGER"
},
dob = {
mode = "NULLABLE"
mode = "NULLABLE",
type = "DATE"
},
dl_id = {
mode = "NULLABLE"
mode = "NULLABLE",
type = "STRING"
},
exp_date = {
mode = "NULLABLE"
mode = "NULLABLE",
type = "DATE"
}
}
Expand Down Expand Up @@ -288,7 +288,7 @@ variable "sensitive_tags" {
}))
default = {
dl_id = {
display_name = "DRIVER_LICENSE_ID"
display_name = "DRIVER_LICENSE_ID",
description = "Driver License document ID."
}
}
Expand Down

0 comments on commit dcce7d5

Please sign in to comment.