Skip to content

Commit 0a14766

Browse files
DTSRD-5230 (#1086)
* Enable reporting via postgresql-cron-jobs pipeline * merge reporting config with existing pgsql section * moved reporting properties * moved reporting properties * corrected property name --------- Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent d28f873 commit 0a14766

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

infrastructure/main.tf

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,16 +44,18 @@ module "db-rd-location-ref-api-v16" {
4444
common_tags = var.common_tags
4545
component = var.component-v16
4646
env = var.env
47+
enable_db_report_privileges = true
4748
pgsql_databases = [
4849
{
4950
name = "dbrdlocationref"
51+
report_privilege_schema : "locrefdata"
52+
report_privilege_tables : ["SERVICE_TO_CCD_CASE_TYPE_ASSOC", "building_location", "court_venue", "region", "cluster", "court_type", "court_type_service_assoc", "dataload_schedular_audit", "dataload_exception_records"]
5053
}
5154
]
5255

5356
# Setup Access Reader db user
5457
force_user_permissions_trigger = "3"
55-
56-
58+
force_db_report_privileges_trigger = "1"
5759

5860
# Sets correct DB owner after migration to fix permissions
5961
enable_schema_ownership = var.enable_schema_ownership
@@ -73,7 +75,6 @@ module "db-rd-location-ref-api-v16" {
7375
action_group_name = join("-", [var.action_group_name, local.db_name, "replica", var.env])
7476
email_address_key = var.email_address_key
7577
email_address_key_vault_id = data.azurerm_key_vault.rd_key_vault.id
76-
7778
}
7879

7980
resource "azurerm_key_vault_secret" "POSTGRES-HOST" {

0 commit comments

Comments
 (0)