Skip to content

Commit

Permalink
create a dev windows 2022 asg for testing (#5209)
Browse files Browse the repository at this point in the history
  • Loading branch information
robertsweetman authored Feb 29, 2024
1 parent a86c94a commit 15afdcd
Showing 1 changed file with 26 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,32 @@ locals {
server-type = "test-server"
}
}
dev-win-2022 = {
# ami has unwanted ephemeral device, don't copy all the ebs_volumess
config = merge(module.baseline_presets.ec2_instance.config.default, {
ami_name = "hmpps_windows_server_2022_release_2024-*"
availability_zone = null
ebs_volumes_copy_all_from_ami = false
user_data_raw = base64encode(file("./templates/user-data.yaml"))
instance_profile_policies = concat(module.baseline_presets.ec2_instance.config.default.instance_profile_policies, ["CSRWebServerPolicy"])
})
instance = merge(module.baseline_presets.ec2_instance.instance.default, {
vpc_security_group_ids = ["domain", "jumpserver"]
})
ebs_volumes = {
"/dev/sda1" = { type = "gp3", size = 100 }
}
cloudwatch_metric_alarms = {}
autoscaling_group = merge(module.baseline_presets.ec2_autoscaling_group.default, {
desired_capacity = 0
})
autoscaling_schedules = module.baseline_presets.ec2_autoscaling_schedules.working_hours
tags = {
description = "Windows Server 2022 for testing"
os-type = "Windows"
component = "test"
}
}
}

baseline_ec2_instances = {
Expand Down

0 comments on commit 15afdcd

Please sign in to comment.