Skip to content

Commit

Permalink
add standard alarms to pp-onr-bods-1 (#9255)
Browse files Browse the repository at this point in the history
* add standard alarms to pp-onr-bods-1

* fix ami name for t2 onr

* add missing alarms
  • Loading branch information
robertsweetman authored Jan 8, 2025
1 parent 000324c commit f9f07c0
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,9 @@ locals {
update-ssm-agent = "patchgroup1"
}
cloudwatch_metric_alarms = merge(
module.baseline_presets.cloudwatch_metric_alarms.ec2,
module.baseline_presets.cloudwatch_metric_alarms.ec2_cwagent_windows,
module.baseline_presets.cloudwatch_metric_alarms.ec2_instance_or_cwagent_stopped_windows,
local.cloudwatch_metric_alarms.windows,
local.cloudwatch_metric_alarms.bods,
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,6 @@ locals {
instance_type = "r6i.2xlarge"
disable_api_termination = true
})
cloudwatch_metric_alarms = null
tags = merge(local.ec2_instances.bods.tags, {
oasys-national-reporting-environment = "pp"
domain-name = "azure.hmpp.root"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,7 @@ locals {

t2-onr-bods-1 = merge(local.ec2_instances.bods, {
config = merge(local.ec2_instances.bods.config, {
ami_name = "hmpps_windows_server_2019_release_2024-12-02T00-00-37.662Z"
availability_zone = "eu-west-2a"
instance_profile_policies = concat(local.ec2_instances.bods.config.instance_profile_policies, [
"Ec2SecretPolicy",
Expand All @@ -170,6 +171,7 @@ locals {

t2-onr-bods-2 = merge(local.ec2_instances.bods, {
config = merge(local.ec2_instances.bods.config, {
ami_name = "hmpps_windows_server_2019_release_2024-12-02T00-00-37.662Z"
availability_zone = "eu-west-2b"
instance_profile_policies = concat(local.ec2_instances.bods.config.instance_profile_policies, [
"Ec2SecretPolicy",
Expand Down

0 comments on commit f9f07c0

Please sign in to comment.