Skip to content

Commit 5cf28f9

Browse files
authored
Add config (#2560)
1 parent 7f94542 commit 5cf28f9

File tree

3 files changed

+25
-7
lines changed

3 files changed

+25
-7
lines changed

Jenkinsfile_CNP

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ properties(
1616
def type = "java"
1717
def product = "ccd"
1818
def component = "data-store-api"
19-
def branchesToSync = ['demo', 'perftest', 'develop']
19+
def branchesToSync = ['demo', 'ithc', 'perftest', 'develop']
2020

2121
// Variables to switch pipeline logic and wiring per type of build
2222

infrastructure/main.tf

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ locals {
1717

1818
sharedASPResourceGroup = "${var.raw_product}-shared-${var.env}"
1919

20+
db_name = "${local.app_full_name}-postgres-db-v15"
21+
2022
}
2123

2224
data "azurerm_key_vault" "ccd_shared_key_vault" {
@@ -115,12 +117,15 @@ module "postgresql_v15" {
115117
}
116118

117119
]
118-
pgsql_version = "15"
119-
product = var.product
120-
name = "${local.app_full_name}-postgres-db-v15"
121-
pgsql_sku = var.pgsql_sku
122-
pgsql_storage_mb = var.pgsql_storage_mb
123-
auto_grow_enabled = var.auto_grow_enabled
120+
pgsql_version = "15"
121+
product = var.product
122+
name = local.db_name
123+
pgsql_sku = var.pgsql_sku
124+
pgsql_storage_mb = var.pgsql_storage_mb
125+
auto_grow_enabled = var.auto_grow_enabled
126+
action_group_name = join("-", [var.action_group_name, local.db_name, var.env])
127+
email_address_key = var.email_address_key
128+
email_address_key_vault_id = data.azurerm_key_vault.ccd_shared_key_vault.id
124129
}
125130

126131
////////////////////////////////////

infrastructure/variables.tf

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,3 +105,16 @@ variable "kv_subscription" {
105105
type = string
106106
description = "Update this with the name of the subscription where the single server key vault is. Defaults to DCD-CNP-DEV."
107107
}
108+
109+
variable "action_group_name" {
110+
description = "The name of the Action Group to create."
111+
type = string
112+
default = "action_group"
113+
}
114+
115+
variable "email_address_key" {
116+
description = "Email address key in azure Key Vault."
117+
type = string
118+
default = "db-alert-monitoring-email-address"
119+
}
120+

0 commit comments

Comments
 (0)