Skip to content

Commit

Permalink
Integrate mod platform patch manager module (#5925)
Browse files Browse the repository at this point in the history
* Test mod platform patch manager
  • Loading branch information
pavmoj authored May 2, 2024
1 parent 2ed69e9 commit 9e0a89e
Showing 1 changed file with 17 additions and 12 deletions.
29 changes: 17 additions & 12 deletions terraform/environments/hmpps-domain-services/patch.tf
Original file line number Diff line number Diff line change
Expand Up @@ -21,21 +21,26 @@ module "development" {
}

module "test" {
count = local.is-test == true ? 1 : 0
source = "../../modules/patch_manager"
application = "hmpps-domain-services"
environment = "test"
predefined_baseline = "AWS-WindowsPredefinedPatchBaseline-OS-Applications"
operating_system = "WINDOWS"
schedule = "cron(0 21 ? * WED#2 *)" # 2nd Weds @ 9pm
target_tag = {
"environment-name" = "hmpps-domain-services-test"
source = "github.com/ministryofjustice/modernisation-platform-terraform-ssm-patching.git?ref=v1.0.0"
count = local.is-test == true ? 1 : 0
providers = {
aws.bucket-replication = aws
}
instance_roles = [
"arn:aws:iam::${module.environment.account_ids.hmpps-domain-services-test}:role/ec2-instance-role-test-win-2022",
]

account_number = module.environment.account_ids.hmpps-domain-services-test
application_name = local.application_name
approval_days = "0"
patch_schedule = "cron(0 21 ? * TUE#2 *)" # 2nd Tues @ 9pm
operating_system = "REDHAT_ENTERPRISE_LINUX"
tags = merge(
local.tags,
{
Name = "ssm-patching"
},
)
}


#module "preproduction" {
# count = local.is-preproduction == true ? 1 : 0
# source = "../../modules/patch_manager"
Expand Down

0 comments on commit 9e0a89e

Please sign in to comment.