Skip to content

Commit

Permalink
Revert "onr: remove bods instance (#6408)" (#6411)
Browse files Browse the repository at this point in the history
This reverts commit 03d6999.
  • Loading branch information
keirwilliams authored Jun 4, 2024
1 parent 401b673 commit 251f79b
Showing 1 changed file with 20 additions and 1 deletion.
21 changes: 20 additions & 1 deletion terraform/environments/oasys-national-reporting/locals_test.tf
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,25 @@ locals {
}

baseline_ec2_instances = {
t2-onr-bods-1-a = merge(local.defaults_bods_ec2, {
config = merge(local.defaults_bods_ec2.config, {
availability_zone = "${local.region}a"
ebs_volumes_copy_all_from_ami = false
user_data_raw = module.baseline_presets.ec2_instance.user_data_raw["user-data-pwsh"]
ami_name = "hmpps_windows_server_2019_release_2024-05-02T00-00-37.552Z" # fixed to a specific version
})
instance = merge(local.defaults_bods_ec2.instance, {
instance_type = "m4.xlarge"
})
user_data_cloud_init = module.baseline_presets.ec2_instance.user_data_cloud_init.ssm_agent_and_ansible
# volumes are a direct copy of BODS in NCR
ebs_volumes = merge(local.defaults_bods_ec2.ebs_volumes, {
"/dev/sda1" = { type = "gp3", size = 100 }
"/dev/sdb" = { type = "gp3", size = 100 }
"/dev/sdc" = { type = "gp3", size = 100 }
"/dev/sds" = { type = "gp3", size = 100 }
})
})
t2-onr-boe-1-a = merge(local.defaults_boe_ec2, {
config = merge(local.defaults_boe_ec2.config, {
instance_profile_policies = setunion(local.defaults_boe_ec2.config.instance_profile_policies, [
Expand Down Expand Up @@ -96,7 +115,7 @@ locals {
ami_name = "base_rhel_6_10_*"
})
instance = merge(local.defaults_web_ec2.instance, {
instance_type = "m4.large"
instance_type = "m4.large"
metadata_options_http_tokens = "optional" # required as Rhel 6 cloud-init does not support IMDSv2
})
user_data_cloud_init = module.baseline_presets.ec2_instance.user_data_cloud_init.ssm_agent_and_ansible
Expand Down

0 comments on commit 251f79b

Please sign in to comment.