Skip to content

Commit

Permalink
onr: remove bods instance (#6408)
Browse files Browse the repository at this point in the history
this commit will be reverted to relaunch the instance.
  • Loading branch information
keirwilliams authored Jun 4, 2024
1 parent 794a135 commit 03d6999
Showing 1 changed file with 1 addition and 20 deletions.
21 changes: 1 addition & 20 deletions terraform/environments/oasys-national-reporting/locals_test.tf
Original file line number Diff line number Diff line change
Expand Up @@ -34,25 +34,6 @@ 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 @@ -115,7 +96,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 03d6999

Please sign in to comment.