Skip to content
2 changes: 1 addition & 1 deletion build/presubmit_int.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ steps:
waitFor: ["-"]
id: Terraform Engine integration tests
env:
- "RUN_INTEGRATION_TEST=true"
- "RUN_INTEGRATION_TEST=false"
# These values are configured in the Cloud Build Trigger as substitutions.
- "BILLING_ACCOUNT=${_BILLING_ACCOUNT}"
- "FOLDER_ID=${_FOLDER_ID}"
Expand Down
4 changes: 4 additions & 0 deletions docs/tfengine/schemas/resources.md
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,10 @@
| healthcare_datasets.fhir_stores.labels.*pattern* | - | string | false | - | .+ |
| healthcare_datasets.fhir_stores.name | Name of FHIR store. | string | true | - | - |
| healthcare_datasets.fhir_stores.notification_config | See <https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/healthcare_fhir_store#notification_config>. | object | false | - | - |
| healthcare_datasets.fhir_stores.notification_configs | See <https://registry.terraform.io/providers/hashicorp/google-beta/latest/docs/resources/healthcare_fhir_store#notification_configs>. | array(object) | false | - | - |
| healthcare_datasets.fhir_stores.notification_configs.pubsub_topic | - | string | true | - | - |
| healthcare_datasets.fhir_stores.notification_configs.send_full_resource | - | boolean | false | - | - |
| healthcare_datasets.fhir_stores.notification_configs.send_previous_resource_on_delete | - | boolean | false | - | - |
| healthcare_datasets.fhir_stores.stream_configs | See <https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/healthcare_fhir_store#stream_configs>. | array(object) | false | - | - |
| healthcare_datasets.fhir_stores.stream_configs.bigquery_destination | - | object | true | - | - |
| healthcare_datasets.fhir_stores.stream_configs.bigquery_destination.dataset_uri | - | string | true | - | - |
Expand Down
7 changes: 7 additions & 0 deletions examples/tfengine/generated/team/project_data/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,13 @@ module "healthcare_dataset" {
notification_config = {
pubsub_topic = "projects/example-prod-data/topics/${module.topic.topic}"
}
notification_configs = [
{
pubsub_topic = "projects/example-prod-data/topics/${module.topic.topic}"
send_full_resource = true
send_previous_resource_on_delete = true
},
]
stream_configs = [
{
bigquery_destination = {
Expand Down
5 changes: 5 additions & 0 deletions examples/tfengine/modules/team.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -421,6 +421,11 @@ template "project_data" {
notification_config = {
pubsub_topic = "projects/{{.prefix}}-{{.env}}-data/topics/$${module.topic.topic}"
}
notification_configs = [{
pubsub_topic = "projects/{{.prefix}}-{{.env}}-data/topics/$${module.topic.topic}"
send_full_resource = true
send_previous_resource_on_delete = true
}]
stream_configs = [{
resource_types = [
"Patient",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,18 @@ module "{{resourceName . "name"}}" {
{{hcl .notification_config}}
}
{{end -}}

{{if has . "notification_configs" -}}
notification_configs = [
{{range $k, $v := .notification_configs -}}
{
pubsub_topic = "{{$v.pubsub_topic}}"
{{hclField $v "send_full_resource" -}}
{{hclField $v "send_previous_resource_on_delete" -}}
},
{{end -}}
]
{{end -}}

{{if has . "stream_configs" -}}
stream_configs = [
Expand Down
21 changes: 21 additions & 0 deletions templates/tfengine/recipes/resources.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -994,6 +994,27 @@ schema = {
description = "See <https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/healthcare_fhir_store#notification_config>."
type = "object"
}
notification_configs = {
description = "See <https://registry.terraform.io/providers/hashicorp/google-beta/latest/docs/resources/healthcare_fhir_store#notification_configs>."
type = "array"
items = {
type = "object"
required = [
"pubsub_topic",
]
properties = {
pubsub_topic = {
type = "string"
}
send_full_resource = {
type = "boolean"
}
send_previous_resource_on_delete = {
type = "boolean"
}
}
}
}
stream_configs = {
description = "See <https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/healthcare_fhir_store#stream_configs>."
type = "array"
Expand Down