Skip to content

Commit 3be1e54

Browse files
committed
monitor action group name so its unique per environment type
1 parent 1904478 commit 3be1e54

File tree

7 files changed

+5
-9
lines changed

7 files changed

+5
-9
lines changed

infrastructure/environments/preprod/variables.tfvars

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
alert_window_size = "PT15M"
21
api_oauth_token_url = "https://int.api.service.nhs.uk/oauth2/token"
32
dns_zone_name = "manage-breast-screening.screening.nhs.uk"
43
enable_auth = false

infrastructure/environments/review/variables.tfvars

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ postgres_backup_retention_days = 7
77
postgres_geo_redundant_backup_enabled = false
88
protect_keyvault = false
99
vnet_address_space = "10.142.0.0/16"
10-
deploy_database_as_container = false
10+
deploy_database_as_container = true
1111
seed_demo_data = true
12-
enable_alerting = false
1312
nhs_notify_api_message_batch_url = "https://int.api.service.nhs.uk/comms/v1/message-batches"

infrastructure/modules/container-apps/postgres.tf

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,9 @@ module "postgres" {
4646
}
4747

4848
# alerts
49-
action_group_id = var.action_group_id
49+
action_group_id = var.action_group_id
5050
enable_monitoring = var.enable_alerting
5151

52-
5352
databases = {
5453
db1 = {
5554
collation = "en_US.utf8"

infrastructure/modules/container-apps/variables.tf

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,6 @@ variable "enable_alerting" {
149149
type = bool
150150
}
151151

152-
153152
variable "alert_window_size" {
154153
type = string
155154
nullable = false

infrastructure/modules/infra/monitor_action_group.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
module "monitor_action_group" {
22
source = "../dtos-devops-templates/infrastructure/modules/monitor-action-group"
33

4-
name = module.shared_config.names.monitor-action-group
4+
name = "${module.shared_config.names.monitor-action-group}-${var.environment}"
55
resource_group_name = azurerm_resource_group.main.name
66
location = var.region
77
short_name = "ag-${var.environment}"

infrastructure/terraform/data.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,6 @@ data "azurerm_subnet" "main" {
3939
data "azurerm_monitor_action_group" "main" {
4040
count = var.deploy_infra ? 0 : 1
4141

42-
name = module.shared_config.names.monitor-action-group
42+
name = "${module.shared_config.names.monitor-action-group}-${var.env_config}"
4343
resource_group_name = local.resource_group_name
4444
}

infrastructure/terraform/variables.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ variable "seed_demo_data" {
133133
variable "alert_window_size" {
134134
type = string
135135
nullable = false
136-
default = "PT5M"
136+
default = "PT15M"
137137
validation {
138138
condition = contains(["PT1M", "PT5M", "PT15M", "PT30M", "PT1H", "PT6H", "PT12H"], var.alert_window_size)
139139
error_message = "The alert_window_size must be one of: PT1M, PT5M, PT15M, PT30M, PT1H, PT6H, PT12H"

0 commit comments

Comments
 (0)