Skip to content

Commit

Permalink
Merge pull request #4561 from ministryofjustice/equip/remove-extra-EC2
Browse files Browse the repository at this point in the history
Remove EC2 instance that is not required
  • Loading branch information
markgov authored Jan 16, 2024
2 parents 1ea3f38 + 3681dc6 commit d7b64a2
Showing 1 changed file with 1 addition and 45 deletions.
46 changes: 1 addition & 45 deletions terraform/environments/equip/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -698,50 +698,6 @@ locals {
Role = "Nimbus Application Services" }
)
}
COR-A-EQP06 = {
instance_type = "t3a.xlarge"
subnet_id = data.aws_subnet.private_subnets_c.id
vpc_security_group_ids = [aws_security_group.aws_equip_security_group.id, aws_security_group.all_internal_groups.id]
root_block_device = [
{
encrypted = true
volume_type = "gp3"
volume_size = 90
kms_key_id = aws_kms_key.this.arn
tags = merge(local.tags,
{ Name = "${local.name}-COR-A-EQP06-root-block" }
)
}
]
ebs_block_device = [
{
device_name = "/dev/sdf"
volume_type = "gp3"
volume_size = 500
encrypted = true
kms_key_id = aws_kms_key.this.arn
tags = merge(local.tags,
{ Name = "${local.name}-COR-A-EQP06-ebs-block-1" }
)
}
]
ebs_block_device = [
{
device_name = "/dev/sdg"
volume_type = "gp3"
volume_size = 500
encrypted = true
kms_key_id = aws_kms_key.this.arn
tags = merge(local.tags,
{ Name = "${local.name}-COR-A-EQP06-ebs-block-2" }
)
}
]
tags = merge(local.tags,
{ Name = "${local.name}-COR-A-EQP06"
Role = "Nimbus Application Services" }
)
}
}
}

Expand All @@ -753,7 +709,7 @@ module "win2022_STD_multiple" {
for_each = local.win2022_STD_instances

name = "${local.name}-${each.key}"
ami = data.aws_ami.windows_2022_std_ami.image_id
ami = "ami-088bb7db420bf535c"
instance_type = each.value.instance_type
vpc_security_group_ids = each.value.vpc_security_group_ids
subnet_id = each.value.subnet_id
Expand Down

0 comments on commit d7b64a2

Please sign in to comment.